Color & Contrast
Explore foreground and background color combinations, convert color formats, check accessibility contrast ratios, and find adjustments for more readable designs.
Loading workspace…
Color settings
- HEX
#F7CDAD- RGB
rgb(247, 205, 173)- HSL
hsl(25.9, 82.2%, 82.4%)
- HEX
#383131- RGB
rgb(56, 49, 49)- HSL
hsl(0.0, 6.7%, 20.6%)
Live preview
DESIGN & ACCESSIBILITY
Good design starts here.
The quick brown fox jumps over the lazy dog. Every detail matters.
Contrast · WCAG 2.2
| Check | AA | AAA |
|---|---|---|
| Normal text | 4.5 | 7.0 |
| Large text | 3.0 | 4.5 |
| UI components and essential graphics | 3.0 | — |
Color correction
These colors meet the target.
How to Use
- Choose colors: Enter HEX, RGB or HSL values, or use the color picker to set foreground and background colors.
- Preview your design: See how headings, body text, buttons and graphics look together. Swap foreground and background colors when needed.
- Check contrast: Review WCAG 2.2 contrast results for normal text, large text and essential graphics.
- Adjust and copy: Select a target contrast ratio, apply a suitable color suggestion, and copy your preferred color format.
Supported Formats & Limitations
- Supports opaque sRGB colors in HEX, RGB and HSL, including traditional comma-separated and modern space-separated CSS syntax.
- Colors are represented in 8-bit sRGB. Alpha transparency, wide-gamut colors and complex CSS color expressions are unsupported.
- Contrast ratios follow the WCAG 2.2 relative luminance formula and range from 1:1 to 21:1. Threshold checks use unrounded values.
- Large text generally means regular text of at least 24 CSS pixels or bold text of approximately 18.67 CSS pixels. Non-text contrast applies to meaningful UI components and essential graphics, not complete website compliance.
- Color suggestions adjust HSL lightness while keeping hue and saturation fixed. Some targets cannot be reached by changing only one color.
- Screen color picking depends on browser support for the EyeDropper API. Color conversion, previews and contrast checks run locally without uploads or persistent storage.
FAQ
What is the difference between HEX, RGB and HSL?
HEX represents colors using hexadecimal notation, RGB uses red, green and blue channels, and HSL describes hue, saturation and lightness. All three can represent the same sRGB color.
What contrast ratios are required for WCAG AA and AAA?
Normal text requires at least 4.5:1 for AA and 7:1 for AAA. Large text requires 3:1 and 4.5:1 respectively. Essential graphics and meaningful UI components generally require a non-text contrast ratio of at least 3:1.
How can I improve an insufficient contrast ratio?
Choose a target of 3:1, 4.5:1 or 7:1. The tool suggests adjustments to either the foreground or background while keeping the other color unchanged. You can apply a suitable suggestion directly.
Does passing a contrast check guarantee WCAG compliance?
No. Color contrast is only one aspect of accessibility. Font size, font weight, component states, keyboard interaction, screen reader support and other requirements must also be considered.