What the contrast ratio measures
WCAG compares the relative luminance of text and background and expresses the difference as a ratio from 1:1 (identical) to 21:1 (black on white). The formula weights green most and blue least, matching how bright colours appear to people.
The thresholds to remember
| Content | WCAG AA | WCAG AAA |
|---|---|---|
| Normal text | 4.5:1 | 7:1 |
| Large text (24px+, or 18.66px+ bold) | 3:1 | 4.5:1 |
| Icons and UI component borders | 3:1 | — |
A practical process
- Pick a brand colour, then check it against white and black — the Color Picker shows both ratios instantly.
- If your brand colour fails as body text, use it for large headings, buttons with white text, or accents instead.
- Generate tints and shades with the Palette Generator and pick text colours from the darker end.
- Verify every text/background pair in the Contrast Checker, including hover and disabled states.
Don’t rely on colour alone
Error messages, links and chart series should also differ by icon, underline, pattern or label — not only by colour. That helps colour-blind users and anyone printing in greyscale.
Key takeaways
- Body text needs 4.5:1; large text 3:1.
- Check both light and dark states.
- Use colour plus another cue for meaning.
Published 18 November 2026 by the Cloude Tools team.