WCAG Contrast Checker

Check the contrast ratio between two colors. Pass/fail verdict for WCAG AA and AAA at every text size.

Aa — Large text 24px / 18px bold
Aa — Normal text 16px
Aa — Small text 12px

What is this for?

WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios between text and background so people with low vision, colour-blindness, or those in bright glare conditions can still read your content reliably. This tool computes the exact contrast ratio between any two colours (ranging from 1:1 for identical colours to 21:1 for pure black on pure white) and tells you whether your pair passes WCAG 2.1 Level AA or AAA. It does this separately for normal text, large text, and UI components, using the W3C luminance formula without shortcuts.

When to use it

How it works

Contrast thresholds

Common gotchas