WCAG 2 accessible colour contrast checker
Test a text and background colour against WCAG 2 AA and AAA, and get the closest colour that passes.
Check a colour pair
Preview at your size and weight
Accessible text is text people can read without effort.
#767676 is the lightest grey that passes AA on white. It doesn't reach AAA.
4.54:1
Contrast ratio, WCAG 2.
APCA Lc 71.6
What WCAG 2 asks for
Not everyone perceives colours the same way. A pair that’s easy for you to read can be hard or impossible for someone else. WCAG 2 measures the difference in relative luminance between text and its background, as a ratio from 1:1 to 21:1.
Level AA asks for at least 4.5:1 for normal text and 3:1 for large text. Level AAA asks for 7:1 and 4.5:1. Since WCAG 2.1, the parts of an interface people need to see, such as input borders and icons, need 3:1 against the colours next to them.
The 4.5:1 ratio compensates for the loss in contrast sensitivity that comes with vision loss of about 20/40, which W3C notes is typical at around age 80.
What’s exempt
Logos and brand names, text in a disabled control, and text that’s purely decorative or not visible to anyone don’t need to meet a ratio.
Gradients and images
Text on a gradient or a photo has to pass against every part of the background it crosses. Measure the lightest and darkest points, as the guide to contrast on gradients shows.
| Requirement | Ratio | Applies to |
|---|---|---|
| AA 1.4.3 | 4.5:1 | Normal text |
| AA 1.4.3 | 3:1 | Large text: 24 px and up, or 18.66 px and up in bold |
| AA 1.4.11 | 3:1 | Interface components and meaningful graphics |
| AAA 1.4.6 | 7:1 | Normal text |
| AAA 1.4.6 | 4.5:1 | Large text |
More free tools
Every tool in the ACHECKS toolbox is free to use, with no account.
- on achecks.org
AChecker+
Check a web page against WCAG 2.0 or 2.1, or a PDF with Tingtun.
- on this site
APCA contrast checker
Test text contrast with APCA, with the WCAG 2 ratio beside it.
- on achecks.org
AChecker Legacy
The original open-source checker from the Inclusive Design Research Centre.
- on this site
WCAG 2 contrast checker
Test a text and background colour against AA and AAA.
- on achecks.org
Tingtun PDF checker
Upload a PDF or paste its address to check it.
- guide
Contrast on gradients
How to check text on a gradient background, stop by stop.
Contrast on 1,000 pages, every week.
ACHECKS checks every page of your site for contrast and the rest of WCAG, and lists the pages to fix in your dashboard.