Color Contrast Checker
Get the WCAG 2.2 contrast ratio of a text and background pair, with AA and AAA results.
Runs in your browser. Nothing you type is sent anywhere.
- Contrast ratio
- 4.54:1
- AA, normal text
- Passesneeds 4.5:1
Large text, 24 px
Normal text, 16 px: the quick brown fox jumps over.
A button outline
WCAG 2.2
- AA · normal text 4.5:1 (1.4.3)Pass
- AA · large text 3:1 (1.4.3)Pass
- AAA · normal text 7:1 (1.4.6)Fail
- AAA · large text 4.5:1 (1.4.6)Pass
- Icons, borders, focus rings 3:1 (1.4.11)Pass
How to use the Contrast Checker
- Type or paste the text color and the background color, in any notation: HEX, RGB, HSL or a CSS name.
- Or pick each one with the color picker.
- Read the contrast ratio and the pass or fail for AA and AAA, normal and large text.
- If it falls short, use the nearest passing text or background color the tool suggests.
Why use this
- Instant. Results update as you type, with nothing to press.
- Private. What you type stays on this page; the link you share holds only the numbers.
- Free, with no sign-up and no watermark.
Questions
What contrast ratio does WCAG 2.2 require?
Level AA needs 4.5:1 for normal text and 3:1 for large text, icons and borders. Level AAA needs 7:1 for normal text and 4.5:1 for large text.
What counts as large text?
Text of at least 24 px, or at least 18.66 px when bold. In print terms that is 18 pt, or 14 pt bold.
Why does it say 4.49:1 and not 4.5:1?
The ratio is cut to two decimals, never rounded up, so a pair that misses 4.5:1 by a hair never looks like a pass. #777777 on white is 4.47:1 and fails AA; #767676 is 4.54:1 and passes.
How is the suggested color chosen?
It keeps the hue and moves only the lightness, darker or lighter, just far enough to reach your target. Between the two directions it picks the one that changes the color least.
Does it handle transparent colors?
Yes. A transparent text color is measured over the background, and a transparent background over white, which is what a page shows behind it by default.