Color Contrast Checker

Check the contrast ratio between two colors with pass/fail verdicts for WCAG AA and AAA, normal and large text, plus a live preview.

All calculations happen locally in your browser. Nothing leaves your device.

Contrast ratio
21.00:1
Normal text AA
—
Normal text AAA
—
Large text AA
—
Large text AAA
—
Preview
The quick brown fox jumps over the lazy dog.
Large text ≥ 18px (24px bold)

About Contrast Ratios

Contrast ratio is the relationship between the lightness of a color and the lightness of its background, expressed as a number like 7.2:1. It is the single most important metric for text readability: if the numbers are close together, text fades into its background; if they are far apart, text pops. WCAG (the Web Content Accessibility Guidelines) turns this number into concrete pass/fail rules for two text sizes and two conformance levels, which is exactly what the table above checks in real time.

Normal text — AA: 4.5:1
The minimum ratio for body copy, buttons, labels and anything under 18pt (24px). It is the baseline required by WCAG 2.1 AA and by most accessibility laws and standards.
Normal text — AAA: 7:1
The enhanced level for body-size text. It makes reading comfortable for older users and people with vision impairment, and is a strong target for documentation and long-form content.
Large text — AA: 3:1
Text at 18pt (24px) or larger, or 14pt (18.7px) and bold, needs a lower ratio because big glyphs are easier to distinguish. This applies to headlines, display text and large UI labels.
Large text — AAA: 4.5:1
The enhanced level for large text. Note it equals the AA minimum for normal text — an interesting quirk of the WCAG scale that makes AAA large text effectively "AA-safe" at any size.

Frequently Asked Questions

What is a contrast ratio and why does it matter?

The contrast ratio measures how different two colors are in perceived brightness, expressed as a number from 1:1 (identical) to 21:1 (black on white). If text and its background are too similar, it becomes hard to read — especially for people with low vision or color blindness, or on bright screens. WCAG defines minimum ratios that text must meet to be considered accessible.

How is the ratio calculated?

Each color is converted to a relative luminance value using the WCAG formula: R, G and B channels are linearized from sRGB, then weighted (0.2126R + 0.7152G + 0.0722B). The ratio is (Llighter + 0.05) / (Ldarker + 0.05). This tool performs that exact calculation in your browser.

What counts as large text?

WCAG defines large text as at least 18pt (24px) regular weight, or at least 14pt (roughly 18.7px) bold. Large text needs a lower minimum ratio (3:1 for AA, 4.5:1 for AAA) because bigger glyphs are easier to distinguish than small ones.

Which level should I aim for?

AA (4.5:1 for normal text) is the legal baseline in many regions and covers the vast majority of users. AAA (7:1) is the gold standard for new products, documentation and anything where readability is critical — it comfortably serves older users and people with vision impairment. When in doubt, aim for AAA.

Does this tool handle transparency?

No. The color pickers only produce fully opaque colors, so the ratio is always between two solid colors. If your design uses alpha, flatten it over the actual background first, then check the resulting color pair here.