Color Contrast Checker
Check text and background contrast against WCAG 2.2 AA and AAA, or test a whole palette as a matrix.
Large text: 24 px regular
Large text: 18.66 px bold
Normal text at 16 px. The quick brown fox jumps over the lazy dog. ₹1,250
See-through colours are blended: the text over the background, and the background over white.
| Use | Level | Needs | Result |
|---|---|---|---|
| Normal text | AA | 4.5:1 | Pass |
| Normal text | AAA | 7:1 | Fail |
| Large text | AA | 3:1 | Pass |
| Large text | AAA | 4.5:1 | Pass |
| Icons, borders, form controls | AA | 3:1 | Pass |
Large text is at least 24 px, or 18.66 px bold. Ratios are not rounded: 4.499:1 fails 4.5:1.
Closest colours that pass
- Text for AAA
#5459647.02:1 - Background for AAANo lighter or darker shade reaches AAA; change the other colour.
Color Contrast Checker FAQ
What contrast ratio do I need to pass WCAG AA?
Normal text needs at least 4.5:1 against its background, and large text (24 px, or 18.66 px bold) needs 3:1. Icons, input borders and other interface parts also need 3:1. For AAA, normal text needs 7:1 and large text 4.5:1.
How is the contrast ratio calculated?
Each colour's relative luminance is worked out from its red, green and blue values, then the ratio is (lighter + 0.05) ÷ (darker + 0.05). It runs from 1:1 (same colour) to 21:1 (black on white).
How do I fix a colour that fails?
Look at Closest colours that pass under the result. It keeps the hue and saturation and makes the text or background lighter or darker just enough to reach AA or AAA. Click Use to try it.
What is a colour contrast matrix?
It is a grid that tests every colour in a palette as text on every other colour as background. The Palette tab builds one for up to 8 colours and marks each pair AAA, AA, AA large or Fail, so you can see which combinations are safe.
Is anything uploaded or saved?
No. The colours are checked in your browser and nothing is sent to a server or saved. The pipette only reads the one pixel you click.
What is the difference between WCAG 2.1 and 2.2 for contrast?
Nothing changes for contrast: WCAG 2.2 keeps the same 4.5:1, 3:1 and 7:1 requirements as 2.1. It added other rules, for example about focus visibility and target size.