Contrast Checker
Check the contrast ratio between two colours and see if it passes WCAG AA and AAA — free, in your browser.
The quick brown fox jumps over the lazy dog
Sample text in your foreground colour on your background colour.
🔒 Processing happens in your browser — nothing is uploaded.
How to use Contrast Checker
Follow the steps below
Pick the foreground (text) colour and the background colour — or type hex codes such as #000000 and #ffffff.
Click Check contrast — the result also updates live as you pick or type.
Read the contrast ratio and the verdict, and check the AA and AAA pass marks.
Click Copy result to copy the ratio and verdict, or Reset to go back to black on white.
Features
- ✓Contrast ratio calculated with the official WCAG formula.
- ✓Live preview of sample text in your colours.
- ✓Clear verdict: Excellent (AAA), Good (AA), Fair (AA Large) or Poor (Fail).
- ✓Separate pass marks for AA and AAA, normal and large text.
- ✓Copy the ratio and verdict in one click.
Supported formats and limits
Enter colours as hex codes in 3-digit form (for example #000) or 6-digit form (for example #000000), with or without the leading #. The ratio runs from 1:1 (identical colours) to 21:1 (black on white). WCAG needs a ratio of at least 4.5:1 for normal text at AA level and 7:1 at AAA level; large text needs 3:1 at AA and 4.5:1 at AAA. Invalid codes show a clear message and the last valid result stays on screen.
Frequently asked questions
Is the Contrast Checker free?
Yes. It is completely free, with no sign-up and no limits.
What is a good contrast ratio?
For normal text, a ratio of 4.5:1 or more passes WCAG AA, and 7:1 or more passes AAA. Black text on white is the highest possible ratio, 21:1, and earns the verdict Excellent (AAA).
What is the difference between AA and AAA?
AA is the standard level most websites aim for, while AAA is the stricter level for the best readability. Large text (18pt and above, or 14pt bold and above) has lower limits than normal text at both levels.
Nextrays