Colour contrast and accessibility: which ratios apply and how to check them
Normal text needs a contrast ratio of at least 4.5:1 against its background, large text and controls at least 3:1. That is what WCAG level AA requires, the benchmark for web accessibility. The colour picker calculates the ratio for any pair of colours.
Check contrast right here
Enter the text and background colours in the colour picker below. It calculates the contrast ratio and shows whether the pair meets levels AA and AAA. Everything runs in your browser.
What the contrast ratio means
The contrast ratio compares how bright two colours appear. It runs from 1:1 (two identical colours) to 21:1 (black on white). It is based on relative luminance, the perceived brightness: green contributes far more than blue. That is why pure yellow looks almost as bright as white.
A few examples on a white background:
#767676(grey): 4.54:1, just enough for normal text.#777777, a touch lighter: 4.48:1, just too little.#F5A64B(orange): 2.01:1, too pale for text on white. On black, the same colour reaches 10.44:1.
So it is never about a single colour, always about the pair.
The WCAG thresholds
The Web Content Accessibility Guidelines (WCAG) have two levels. AA is the usual benchmark, AAA the stricter one.
| What | AA | AAA |
|---|---|---|
| Normal text | 4.5:1 | 7:1 |
| Large text (24 px and up, bold from about 18.7 px) | 3:1 | 4.5:1 |
| Controls and graphics (input borders, icons, lines in charts) | 3:1 | – |
Logos, pure decoration and disabled buttons are exempt. Text in images, on the other hand, counts.
Never use colour as the only signal
Even good contrast does not help if information can only be told apart by colour. Around one in twelve men has red-green colour blindness. Pure red and pure green also only have a ratio of 2.91:1 against each other.
- Underline links in body text, do not just colour them.
- Mark form errors with text and an icon, not just a red border.
- Label chart lines or tell them apart with patterns.
When the contrast is not enough
- Change lightness, keep the hue. In HSL, make the text darker or the background lighter; the colour stays recognisably the same.
- Use the brand colour as a surface, not as text. A light orange does not work as text on white, but it works as a background for dark text.
- Bigger only helps down to 3:1. Large or bold text needs less contrast, but never less than 3:1.
- Do not make placeholder text too pale. Light grey example text in input fields often fails. Important hints belong in a visible label anyway.
Who has to be accessible
In the EU, the European Accessibility Act has applied since 28 June 2025 to many consumer products and services, including online shops and banking services. Public sector websites were covered earlier. In the US, the ADA and Section 508 point in the same direction. Technically, these rules usually refer to WCAG level AA.
Whether your site falls under a specific law is a question for legal advice. Readable text pays off for every visitor either way.
Frequently asked questions
What is the difference between AA and AAA?
AA is the level laws and standards ask for. AAA is stricter, such as 7:1 for normal text, and is usually only aimed for in parts of a site.
Is black on white not too harsh?
Some people find it so on bright screens. A very dark grey such as #333333 still reaches 12.63:1, well above AAA.
How do I check text on a photo?
Measure against the lightest spot behind the text. If that is not enough, put a semi-transparent dark layer between photo and text.
What is APCA?
A newer method of calculating contrast that is being discussed for a future version of WCAG. The binding values today are those of WCAG 2, as described above.
More in Colour and design
How to create a colour palette for your website, logo and slides
A good palette has one base colour, one or two accent colours and neutrals for text and backgrounds. Derive the accents from the base colour with a colour harmony, split the areas roughly 60 to 30 to 10, and check every text and background pair for enough contrast.
Read it later?
Tap "Save" at the top. The guide then shows up in your saved guides.