WCAG Color Contrast Checker

Check whether your text and background colors meet WCAG accessibility standards. Get the exact contrast ratio with clear AA and AAA pass/fail results for normal, large, and UI text — with a live preview as you adjust.

Large heading text
Normal body text — the quick brown fox jumps over the lazy dog. 0123456789.
contrast ratio

Understanding WCAG Color Contrast

Color contrast is one of the most common accessibility failures on the web — and one of the easiest to fix. The Web Content Accessibility Guidelines (WCAG) define a measurable contrast ratio between text and its background, ranging from 1:1 (no contrast) to 21:1 (pure black on pure white). The higher the ratio, the easier the text is to read, especially for people with low vision or color deficiencies.

The Thresholds You Need to Hit

How the Ratio Is Calculated

Contrast isn't a simple color difference. WCAG computes the relative luminance of each color — a weighted measure of perceived brightness that accounts for how the human eye is more sensitive to green than to red or blue — then divides the lighter value by the darker one (with a small offset). That's why two colors can look different yet still fail: it's brightness, not hue, that drives readability.

Designing for Contrast

If a pairing fails, you usually don't need to abandon your palette — just adjust lightness. Darken the text or lighten the background until you cross the threshold. Avoid relying on color alone to convey meaning (pair it with text or icons), and remember that placeholder text, disabled states, and text over images all need to meet contrast too. Aim for AA as a minimum and AAA where readability is critical, such as long-form content.

Frequently Asked Questions

For WCAG AA, normal text needs at least 4.5:1 and large text 3:1. For the stricter AAA level, normal text needs 7:1 and large text 4.5:1. UI components and graphical objects need 3:1.
Large text is at least 24px (18pt) for regular weight, or 18.66px (14pt) for bold. Large text has a lower contrast requirement because bigger glyphs are easier to read.
WCAG measures relative luminance (perceived brightness), not hue. Two very different hues with similar brightness can still fail, while a light and dark version of the same hue often passes. That's why a calculated ratio is the reliable test.
Adjust lightness rather than hue: darken the text or lighten the background until the ratio crosses the threshold. Our color shades generator can produce darker or lighter variants of your brand color to use.
Yes. It uses the exact WCAG 2.1 relative-luminance and contrast-ratio formulas, computed locally in your browser. Nothing is uploaded.