An estimated 300 million people worldwide have some form of colour vision deficiency, and roughly 2.2 billion have a vision impairment. When your website's text does not contrast clearly against its background, a significant portion of your audience simply cannot read it.
The Web Content Accessibility Guidelines (WCAG) provide specific, testable contrast requirements that design teams can follow.
The WCAG contrast ratio
Contrast ratio is expressed as a number from 1:1 (no contrast — same colour) to 21:1 (black text on white). WCAG defines two conformance levels:
| Level | Normal text | Large text (18pt+ or 14pt bold) |
|---|---|---|
| AA (minimum) | 4.5:1 | 3:1 |
| AAA (enhanced) | 7:1 | 4.5:1 |
AA is the legal requirement in most jurisdictions. AAA is recommended for body text where maximum readability matters.
Common failures
- Light grey text on white — a popular design trend that routinely fails AA.
#767676on white is the minimum grey that passes AA at 4.5:1. - Coloured text on coloured backgrounds — yellow on white, light blue on white, and mid-tone combinations frequently fail.
- Placeholder text — input placeholder text is often styled at 40% opacity and almost always fails contrast requirements.
- Disabled state text — WCAG technically exempts disabled controls, but making them readable is still good practice.
Testing your colours
The Color Contrast Checker calculates the contrast ratio between any two colours:
- Enter your foreground colour (text) in HEX, RGB, or HSL.
- Enter your background colour.
- The tool shows the contrast ratio and whether it passes AA and AAA for both normal and large text.
Fixing a failing combination
- Darken the text colour — moving from
#999to#767on white jumps from a fail (2.85:1) to a pass (4.54:1). - Darken or lighten the background — if the background is a brand colour, try a lighter tint behind the text.
- Increase font size — large text (18pt or 14pt bold) has a lower threshold (3:1 instead of 4.5:1), so upsizing can turn a fail into a pass.
- Add a text shadow or outline — for text over images, a subtle shadow often adds enough contrast to pass.
Building an accessible palette
When creating a brand palette, use the Color Palette Generator to explore options, then check every text-on-background combination with the Color Contrast Checker before finalising. Document the approved pairs so developers implement them consistently.
Accessibility is not an afterthought — it is a baseline. Readable contrast is the single most impactful accessibility improvement most sites can make.
Explore 285+ free tools
No signup, no watermarks — everything runs privately in your browser.
Browse all tools