The WCAG thresholds checked
From the W3C's Web Content Accessibility Guidelines 2. Large text means 18 point (about 24 px) or 14 point bold (about 18.7 px).
| Check | Minimum ratio |
|---|---|
| AA, normal text | 4.5:1 |
| AA, large text | 3:1 |
| AAA, normal text | 7:1 |
| AAA, large text | 4.5:1 |
| User interface parts and icons | 3:1 |
Checking a pair
Enter two colours
Type or pick the text and background colours, or start from one of the sample pairs. Swap them with one button.
Read the result
A sample block shows a heading, body text and small print. The ratio and an overall rating sit beside five pass or fail badges.
Fix it if needed
When the pair fails, the tool offers the nearest text colour that passes AA, one that passes AAA and an alternative background. Click a code to apply it.
Check colour vision
Four samples simulate red-blind, green-blind, blue-blind and no colour vision, each with its ratio.
Example: grey small print in a cold email footer
A consultant's email template has its address and opt-out line in light grey #8A9199 on white. The checker gives 3.18:1: it passes AA for large text and user interface parts but fails AA for normal text, which is how footers are set.
The suggested AA text colour is #6F7780, the AAA colour is #53595F, and keeping the grey text would need a background of #292929. Switching the footer text to #6F7780 keeps the soft look and makes the opt-out readable.
Text #8A9199 on background #FFFFFF
Contrast 3.18:1, rating Large text only Nearest AA text colour #6F7780 Nearest AAA text colour #53595F
Why it matters beyond accessibility
Low-contrast text is harder for everyone to read on a phone in daylight, not just for people with low vision. In outreach, the details people need to trust a message, such as who you are and how to opt out, are often in the smallest, palest text. Making them readable is good practice and good manners.
Questions people ask
What is a good contrast ratio for text?
WCAG 2 asks for at least 4.5:1 between normal body text and its background for level AA, and 7:1 for AAA. Large text needs 3:1 for AA. Black on white is 21:1, the maximum. Aim for AA as a minimum on websites and emails.
How is the contrast ratio calculated?
WCAG 2 defines it. First, the brightness the eye perceives (relative luminance) is found for both colours. Then 0.05 is added to each, and the larger figure is divided by the smaller. That is why the scale runs from 1:1 for identical colours to 21:1 for black on white.
Why do the colour blindness samples show almost the same ratio?
The WCAG ratio depends on lightness, which colour blindness barely changes. The samples are there to show whether the two colours still look different, which matters when colour alone carries meaning, such as red and green status labels.
Where your data goes
All checks are calculated in your browser. The colours you enter are not sent anywhere.
Checked against the tool on