This free color contrast checker tells you in one click whether your text is readable on its background. Pick a text color and a background color and the tool gives you the exact WCAG contrast ratio, plus pass or fail for AA and AAA levels — the accessibility standards websites are judged by. Designers use it for websites, apps, presentations and social posts. No sign-up, nothing uploaded.
How to Use the Color Contrast Checker
- Pick a text color with the color picker, or type a hex code (for example #1E293B).
- Pick a background color the same way (for example #FFFFFF for white).
- Click Check Contrast. The color contrast checker shows the ratio, the AA and AAA results for normal and large text, and a live preview of sample text in your exact colors.
- If a level fails, adjust one color a little at a time — darkening text or lightening the background — until the level you need passes.
What Is the Contrast Ratio?
The contrast ratio measures how different two colors look, on a scale from 1:1 (identical colors, invisible text) to 21:1 (black on white, maximum contrast). It is calculated from the relative luminance of each color — roughly, how much light the color reflects — using the formula in the accessibility standards: ratio = (lighter luminance + 0.05) ÷ (darker luminance + 0.05). Because the formula uses real light values, not just how colors look on your screen, two colors that seem different can still fail, and the color contrast checker catches that before your users do.
Contrast matters for everyone, not only for people with low vision. Pale gray text on a white background is hard to read in sunlight, on a cheap phone screen, or for tired eyes at night. Good contrast is one of the cheapest accessibility wins: it costs nothing to pick a darker gray, and it helps every single reader.
WCAG Contrast Levels
The Web Content Accessibility Guidelines (WCAG) set the pass levels the whole industry uses. Level AA is the legal and practical standard most websites aim for; AAA is the stricter level for high-accessibility sites. The WCAG 2.1 guidelines define these levels, and the color contrast checker tests all four of them for you.
| Level | Text size | Minimum ratio |
|---|---|---|
| AA | Normal text | 4.5:1 |
| AA | Large text (18pt+, or 14pt bold+) | 3:1 |
| AAA | Normal text | 7:1 |
| AAA | Large text | 4.5:1 |
Color Contrast Checker Example
Pure black text (#000000) on white (#FFFFFF) scores 21.00:1 — a pass at every level. A very common real-world choice, medium gray #767676 on white, scores 4.54:1. That passes AA for normal text, but only just: one shade lighter and it fails. Light gray #AAAAAA on white scores only about 2.32:1, which fails even AA for large text — that is the pale gray body text you see on too many modern websites, and it is exactly what this tool helps you avoid.
When a combination fails, change only one side at a time. If your brand color must stay as the background, darken the text until it passes. If the text color is fixed, lighten the background. Small steps work: moving from #767676 to #595959 on white lifts the ratio from 4.54:1 to about 7.00:1, which passes AAA for normal text.
Frequently asked questions
What is a good contrast ratio for a website?
Aim for at least 4.5:1 for all body text (AA normal). Headings in large text can use 3:1, but 4.5:1 everywhere is simpler and safer.
Does the color contrast checker work for buttons and icons?
Yes for the text on them. For icons and UI parts without text, WCAG asks for 3:1 against neighbouring colors — check the icon color against its background the same way.
Do I need to check every color pair on my site?
Check every text-and-background pair your visitors actually read: body text, headings, buttons, links and footer text. Decorative colors that carry no text do not need a ratio.
Is my color data stored?
No. The calculation runs in your browser only.
Related tools: Aspect Ratio Calculator, Screen Resolution Checker, Image Compressor.

