Contrast Checker

WCAG 2 contrast ratio with AA/AAA pass-fail and fixes.

Free online contrast checker by AIML Digital. It runs 100% in your browser: no sign-up, no limits, and nothing you enter is sent to a server.

Formulas

How it works

  1. If it fails, lightness is stepped 1% at a time until the ratio reaches 4.5:1.

Standard / source: WCAG 2.2 SC 1.4.3 / 1.4.6 / 1.4.11.

Frequently asked questions

Is the Contrast Checker free?

Yes. The Contrast Checker by AIML Digital is completely free, with no sign-up, no limits and no watermark.

Is my data sent anywhere?

No. The Contrast Checker runs entirely in your web browser using JavaScript. What you type stays on your device.

What formula does the Contrast Checker use?

Relative luminance L = 0.2126 R + 0.7152 G + 0.0722 B (linearised: c ≤ 0.03928 ? c/12.92 : ((c+0.055)/1.055)^2.4); Contrast ratio = (L_lighter + 0.05) ÷ (L_darker + 0.05); AA normal ≥ 4.5 · AA large ≥ 3 · AAA normal ≥ 7 · AAA large ≥ 4.5.

How does the Contrast Checker work?

If it fails, lightness is stepped 1% at a time until the ratio reaches 4.5:1.

Does the Contrast Checker work on mobile?

Yes. It works in any modern browser on phone, tablet or desktop, and keeps working offline once loaded (except tools that load a helper library the first time).

More Design tools