← Blog

WCAG Color Contrast: The Designer's Field Guide

Contrast is the accessibility rule designers hit first and most often. The rules are simpler than they look — and the fixes are usually small.

The numbers that matter

ElementAA minimumAAA target
Body text (under ~18pt)4.5:17:1
Large text (18pt+, or 14pt bold)3:14.5:1
UI components & icons3:1—
Decorative elements, logosexemptexempt

The ratio compares relative luminance — effectively how bright each color is to the human eye — on a scale from 1:1 (identical) to 21:1 (black on white).

The traps everyone falls into

Fixing a failing pair without losing the brand

Keep the hue, move the lightness. Darkening a brand blue from 45% to 38% lightness usually gets white text past 4.5:1 while staying recognisably the same blue. Our contrast checker does this automatically — it suggests the nearest passing shade with one click.

One more habit: check contrast in both themes. A color that passes on white often fails on a dark surface, which is exactly why full shade scales beat single HEX codes.

Sources and further reading