Download a video

DESIGN · 5 MIN READ

How to Choose Accessible Website Colors (WCAG Contrast Explained)

About one in twelve men has some form of colour-vision deficiency, and many more people read screens in bright sunlight. Good contrast makes your site usable for all of them — and it is measurable.

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

ContentWCAG AAWCAG AAA
Normal text4.5:17:1
Large text (24px+, or 18.66px+ bold)3:14.5:1
Icons and UI component borders3: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.