ChromaNest

WCAG contrast ratio explained

Contrast ratio measures how different two colors are in perceived brightness. WCAG uses it to set minimums for readable text.

Open contrast checker

WCAG contrast checker

AA needs 4.5:1 (normal) / 3:1 (large). AAA needs 7:1 / 4.5:1.

Normal text preview — The quick brown fox jumps over the lazy dog.

Large text preview (18pt+ / 14pt bold)

16.97:1

AA normal: PassAA large: PassAAA normal: PassAAA large: Pass

The formula (conceptually)

WCAG computes relative luminance for each color (a weighted mix of linearized R, G, and B), then forms the ratio (L1 + 0.05) / (L2 + 0.05) where L1 is the lighter color. The result ranges from 1:1 (identical) to 21:1 (black on white).

AA vs AAA

UI components

Non-text UI (icons, focus rings, charts) often follows the 3:1 graphical object guidance. Always verify critical paths — forms, errors, and navigation — with real type sizes.

Check free

Use ChromaNest's contrast checker to pick foreground and background hex values, swap them, and see pass/fail for AA and AAA instantly.