WCAG Color Contrast Checker

Check whether your text and background colors meet WCAG accessibility standards. Get the calculated contrast ratio with clear AA and AAA pass/fail results for normal text, large text, and UI graphics — 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 and text over images also need contrast checks; inactive controls are exempt from these contrast criteria. Aim for AA as a minimum and AAA where readability is critical, such as long-form content.

Frequently Asked Questions

WCAG AA text contrast generally requires 4.5:1 for normal text and 3:1 for large text; AAA uses 7:1 and 4.5:1 respectively, with criterion-specific exceptions. The non-text criterion uses 3:1 against adjacent colors for visual information needed to identify covered controls, states and graphics, with exceptions—not every UI pixel.
Large text is at least 24px (18pt) for regular weight, or 18.67px (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.
It calculates WCAG relative luminance for two opaque 8-bit sRGB colors. The displayed ratio is rounded to two decimals, while pass/fail uses the unrounded value. It does not evaluate images, gradients, transparency, font rendering or full WCAG conformance.