Professional Color Contrast Checker
Test colour combinations to make sure your designs meet WCAG standards and stay readable.
Foreground Color
Background Color
Contrast Ratio
WCAG Compliance
Normal Text
AA (4.5:1)
Large Text
AA (3:1)
Normal Text
AAA (7:1)
Large Text
AAA (4.5:1)
Text Preview
Color Blindness Simulation
Preview how your color combination appears to people with different types of color vision deficiency.
Normal Vision
Protanopia
Deuteranopia
Tritanopia
Check whether your text is readable on its background. Enter a text colour and a background colour as HEX (including short codes like #fff), rgb() or hsl(), and the checker shows the contrast ratio and whether it passes WCAG 2.2 levels AA and AAA for normal and large text. You can also preview the pair as people with protanopia, deuteranopia or tritanopia see it.

How to check colour contrast
- Enter the foreground (text) colour and the background colour, or pick them with the colour pickers.
- Read the ratio and the pass/fail badges for Normal Text, Large Text and UI and Graphics (icons, buttons and form borders, which need 3:1). The ratio is rounded down, so a pair that fails is never shown with a passing number.
- If it fails, look at Suggested fixes. It gives the nearest text or background colour that reaches AA or AAA, keeping your hue and changing only the lightness. Press Use to apply one.
- Check the colour-blindness previews for protanopia, deuteranopia and tritanopia, then copy the colours or use Copy link to these colours to share the exact pair.

WCAG contrast requirements
| What | Level AA (minimum) | Level AAA (enhanced) |
|---|---|---|
| Normal text | 4.5:1 | 7:1 |
| Large text (24px, or 18.66px bold) | 3:1 | 4.5:1 |
| Icons, buttons, form borders | 3:1 | Not defined |
Logos and purely decorative text are exempt. Most laws and accessibility policies (for example in the EU and US public sector) point to level AA.
Contrast ratios of common colour pairs
| Text on background | Ratio | AA normal text | AA large text | AAA normal text |
|---|---|---|---|---|
| Black #000000 on white #FFFFFF | 21:1 | Pass | Pass | Pass |
| Dark grey #333333 on white | 12.63:1 | Pass | Pass | Pass |
| Grey #767676 on white | 4.54:1 | Pass | Pass | Fail |
| Light grey #999999 on white | 2.85:1 | Fail | Fail | Fail |
| White on blue #0066CC | 5.57:1 | Pass | Pass | Fail |
| White on green #2E7D32 | 5.13:1 | Pass | Pass | Fail |
| White on red #E53935 | 4.23:1 | Fail | Pass | Fail |
| White on orange #FF9800 | 2.16:1 | Fail | Fail | Fail |
| Black on yellow #FFEB3B | 17.20:1 | Pass | Pass | Pass |
#767676 is the lightest grey that still passes AA on white, which makes it a handy default for secondary text. White on orange and on bright red are the most common failures on buttons; use black text, or darken the button colour.
How to fix low contrast
- Darken the text colour first; it rarely changes the look of the design as much as changing the background. The Suggested fixes box in the tool does this for you and shows the exact hex code.
- For coloured buttons, try black text before white text; on yellow, orange and light green it usually passes.
- Make text larger or bold when you cannot change the colours; large text only needs 3:1.
- Text on photos: add a dark overlay or darken the image with Brightness and Contrast before placing text.
Colour formats you can type: full hex like #1f7a4d, short hex like #fff or #09c, rgb(31, 122, 77) and hsl(151, 59%, 30%). Paste whichever format your design tool gives you and the contrast ratio updates straight away.
Frequently asked questions
What contrast ratio do I need?
At least 4.5:1 for body text and 3:1 for large text and interface elements (WCAG level AA). Aim for 7:1 on long reading text if you can.
What counts as large text?
Text of at least 18 point (24 CSS pixels), or at least 14 point (about 18.66 CSS pixels) when bold.
Can I enter RGB or HSL colours?
Yes. Type values like rgb(46, 125, 50) or hsl(123, 46%, 34%) in the RGB or HSL box (press Enter), or paste any format into the HEX box, with or without the #, in full or short form.
How does the colour-blindness preview work?
It recalculates both colours using the model by Machado, Oliveira and Fernandes (2009) for full protanopia, deuteranopia and tritanopia, then shows sample text and the contrast ratio for that view. It is a guide: real colour vision varies from person to person, and the WCAG pass or fail result is always based on the original colours.
Can I share a colour pair with someone?
Yes. Press Copy link to these colours and send the link. When it is opened, the checker loads the same text and background colours.
Do the suggested fixes always keep my colour?
They keep the hue and saturation and only change lightness, so the colour still looks like yours. They also keep the light and dark order of the pair, so a light background stays light. If no lighter or darker version of a colour can reach the target, that suggestion is not shown; change the other colour instead.
Looking for something else? Browse all our free text and developer tools.
Sources
Checked in November 2026:
- W3C: Understanding WCAG 2.2 Success Criterion 1.4.3 Contrast (Minimum)
- W3C: Web Content Accessibility Guidelines (WCAG) 2.2
How to cite this tool
Using this tool for coursework, a report or research? You can cite it like this (APA 7th edition):
Kumar, M. (2026). Color Contrast Checker [Online tool]. FreeToolsLand. https://freetoolsland.com/color-contrast-checker/
Related tools
- CSS Box Shadow Generator: design shadows for cards and buttons.
- Add Text to Image: put readable text on photos.
