AAFree local calculation · public tool

WCAG Color Contrast Checker & Minimum-Fix Planner

Calculate the WCAG 2.2 contrast ratio, inspect every relevant threshold and generate deterministic foreground alternatives toward black or white.

Does this colour pair pass WCAG 2.2, and what exact foreground change can reach my target?

The same pair can pass large text yet fail normal text. Check the official ratio against each use-case threshold, then test the generated black/white-direction candidate in the real interface; a mathematical pass does not replace contextual accessibility testing.

Method

WCAG 2.x linearises sRGB, calculates relative luminance, then uses (lighter + 0.05) ÷ (darker + 0.05). Repair candidates incrementally mix only the foreground toward black or white and report the first rounded candidate reaching the chosen ratio.

Important limitation

The generated option is minimal only on that straight RGB-mix path, not a perceptual or brand-optimal colour. Gradients, opacity, images, states, antialiasing and colour-only meaning need separate tests.

Your planning inputs

Enter measured or exact first-party values

How to use the result safely

Use it as a transparent planning ledger. Stop before commitment when the exact product, source setting or real context is unknown; re-enter verified values and calculate again.