WCAG Color Contrast Checker
Pick a text color and a background color to see the contrast ratio and whether it passes WCAG AA and AAA.
Large text sample
Normal text sample: the quick brown fox jumps over the lazy dog.
| WCAG check | Minimum ratio | Result |
|---|---|---|
| AA normal text | 4.5:1 | |
| AAA normal text | 7:1 | |
| AA large text (24 px, or 19 px bold) | 3:1 | |
| AAA large text | 4.5:1 | |
| AA icons and input borders | 3:1 |
What do the results mean?
The contrast ratio compares how bright two colors are. It runs from 1:1 (no contrast) to 21:1 (black on white). The Web Content Accessibility Guidelines (WCAG) set minimum ratios so that people with low vision or in bright light can read your text.
- AA, normal text: at least 4.5:1. This is the common target for body text.
- AA, large text: at least 3:1. Large means 24 px or bigger, or 19 px bold.
- AAA: a stricter level of 7:1 for normal text and 4.5:1 for large text.
- Icons and input borders: at least 3:1 against their surroundings.
Want the full explanation? Read our guide to the WCAG contrast ratio.
Contrast checker FAQ
What is a good contrast ratio?
For body text, 4.5:1 is the minimum for WCAG AA and 7:1 or more is comfortable for most people. Very high ratios are not harmful, but pure white on pure black can feel harsh on long reads.
Does dark mode need contrast checking too?
Yes. Light text on a dark background must meet the same ratios. Use the Dark mode preset above to see a pair that passes comfortably.
How is the ratio calculated?
Each color is converted to relative luminance and the ratio is (lighter + 0.05) divided by (darker + 0.05), as defined by WCAG. The result is never rounded up, so a value just under a limit shows as failing.
Are my colors saved anywhere?
No. The calculation runs in your browser and nothing is sent or stored.
More free tools
Everything runs in your browser. No sign-up, no uploads.
Image converter
Convert between JPG, PNG, WebP, AVIF, GIF, BMP, TIFF and ICO.
ImagesCompress image
Make photos much smaller without visible quality loss.
PDFImage to PDF
Combine pictures into a single PDF file.
AccessibilityContrast checker
Check text and background colors against WCAG.
AccessibilityColor blindness simulator
See how an image looks with common color vision types.
Eye careEye break timer
A simple 20-20-20 reminder to rest your eyes.
Read comfortably on every website
Dark Mode Night Reader adds dark mode, sepia, a blue light filter and text tools to Chrome. Free, light and private.