Free browser tool

WCAG color contrast checker

Test any foreground and background color pair against WCAG AA and AAA contrast thresholds. The calculation runs entirely in this browser: no account, upload, or network request is required.

FreeInstant calculationNo tracking

Readable brand copy

Preview text on your selected colors.

Contrast ratio

11.36:1

AA body text passes

AA normal text

Most body copy · minimum 4.5:1

AAA normal text

Enhanced contrast · minimum 7:1

AA large text

18 pt or 14 pt bold · minimum 3:1

AAA large text

Enhanced large text · minimum 4.5:1

Non-text UI

Controls and meaningful graphics · minimum 3:1

How to read a contrast ratio

A contrast ratio compares the relative luminance of two colors. The scale runs from 1:1 for identical colors to 21:1 for black against white. A higher number means a stronger visual difference. This tool uses the WCAG relative-luminance formula and evaluates the pair against the commonly used AA and AAA thresholds.

ContentWCAG AAWCAG AAA
Normal text4.5:17:1
Large text3:14.5:1
UI components and graphics3:1Not separately defined

What this result can and cannot prove

A passing ratio confirms the mathematical difference between the two entered colors. It does not prove that every text layer in a design uses those colors, that text remains legible over photography, or that color is not being used as the only way to communicate meaning. Review hover, focus, disabled, error, and visited states separately.

Large text thresholds only apply when the rendered type meets the relevant size and weight definition. When in doubt, evaluate the stricter normal-text threshold. For complete guidance, consult the W3C explanation of contrast minimum.

Frequently asked questions

What contrast ratio should body text use?

WCAG AA requires at least 4.5:1 for normal text. A 7:1 ratio meets the enhanced AAA threshold.

Does a brand color have to be replaced if it fails?

Not necessarily. Keep the brand color for large surfaces or decoration, and choose a different approved foreground or background color for text.

Are transparent colors supported?

This calculator accepts solid hex colors. Composite transparent layers against their final background before testing the resulting color pair.

Check the complete exported asset

BrandPreflight can evaluate resolvable SVG text pairs alongside approved colors, typefaces, logos, terminology, and production hygiene. Uncertain raster evidence stays marked for human review.

Run a full preflight