BuildUtilities

WCAG Color Contrast Cheat Sheet

WCAG measures contrast as a ratio between text and background luminance, from 1:1 (no contrast) to 21:1 (black on white). Higher = more readable.

Contrast minimums

AA, normal text4.5:1 minimum
AA, large text3:1 minimum
AA. UI components & graphical objects3:1 minimum
AAA, normal text7:1 minimum (strict)
AAA, large text4.5:1 minimum

What counts as 'large text'

≥ 24px regular weightCounts as large.
≥ 18.66px (14pt) boldCounts as large.
Anything smallerTreated as normal text, needs the higher ratio.

What WCAG does NOT require contrast for

Decorative textLogos, brand names in marketing, exempt.
Disabled UI controlsExempt, but still aim high for usability.
Incidental textText inside an image used decoratively.

Quick mental checks

Pure black on pure white21:1, maximum possible.
#777 on white~4.5:1, passes AA for normal text by a hair.
#999 on white~2.8:1, fails AA for any size.
White on a brand colorAlmost always needs a darker brand value than designers expect.

Related tools

More references

Tip Jar