- Free tools
- Color Contrast Checker
FREE ACCESSIBILITY TOOL
Color contrast checker
Test any text and background color against the WCAG AA and AAA contrast ratios. See a live preview, the exact ratio, and a one-click fix to the nearest passing color. Nothing is uploaded.
- WCAG 2.2 AA and AAA
- Live preview
- Nearest passing color
Colors
Runs entirely in your browser. Nothing is uploaded.
Result
Large heading sample
This is body text at a normal size. Good contrast keeps it readable for everyone, including people with low vision.
Normal text
Large text
UI components & graphics (3:1)
Nearest passing color (AA normal text)
HOW IT WORKS
Check contrast in three steps
The checker uses the official WCAG luminance formula, so the ratio it shows matches what auditors, screen reader vendors and legal accessibility reviews use.
Enter two colors
Type a hex value, use the color pickers or paste an rgb() or named color for the text and its background.
Read the ratio and passes
See the exact contrast ratio and whether it meets AA and AAA for normal and large text, plus the 3:1 bar for UI and graphics.
Apply the nearest fix
If a pair fails, click a suggestion to shift the lightness of your text or background until it passes AA, keeping your hue.
WCAG THRESHOLDS
What contrast ratio you need, and why
Contrast is the difference in luminance between text and its background. WCAG sets minimums so text stays legible for people with low vision, color vision deficiency, or anyone reading on a glary screen.
| Content | AA minimum | AAA minimum |
|---|---|---|
| Normal text (under 24px) | 4.5 : 1 | 7 : 1 |
| Large text (24px, or 18.66px bold) | 3 : 1 | 4.5 : 1 |
| UI components and graphics | 3 : 1 | 3 : 1 |
| Disabled controls and logos | Exempt | Exempt |
WHAT YOU GET
Built for real design work
WCAG formula
Relative luminance and the (L1 + 0.05) / (L2 + 0.05) ratio, matching audit tools to two decimal places.
Instant preview
See your heading and body text on the real background as you type, so you judge legibility, not just the number.
Nearest passing color
Keep your hue and nudge the lightness to the closest value that passes AA, instead of falling back to black or white.
Any color format
Hex, shorthand hex, rgb() and named CSS colors all work, with color pickers for fast trial and error.
Every level
AA and AAA for normal and large text, plus the 3:1 threshold for buttons, icons, inputs and charts.
Nothing uploaded
Everything runs in your browser. No account, no tracking of your colors, no server round trip.
ONE PAIR VS A WHOLE SITE
This tool checks a color pair. SiteAuditLint checks every page.
Use this checker while you design. When you need to find low-contrast text that already shipped, the desktop app crawls your pages and flags it in context.
| Task | This free tool | SiteAuditLint app |
|---|---|---|
| Check one text and background pair | Yes | Yes |
| Live preview and nearest passing color | Yes | Not needed |
| Find low-contrast text across a site | No | Yes |
| Report issues per page with element context | No | Yes |
| Re-check after a fix across all pages | No | Yes |
The checker here is perfect for design decisions. Site-wide auditing lives in the free desktop app.
FAQ
Color contrast questions
What is a good color contrast ratio?
WCAG AA needs at least 4.5:1 for normal text and 3:1 for large text (18.66px bold or 24px and up). AAA raises that to 7:1 for normal text and 4.5:1 for large text. User interface components and graphics need at least 3:1.
Is this color contrast checker free?
Yes. It is free with no signup, and it runs entirely in your browser, so nothing you type is uploaded. To find low-contrast text across a whole site, download the free SiteAuditLint desktop app.
How is the contrast ratio calculated?
The ratio uses the WCAG formula (L1 + 0.05) / (L2 + 0.05), where L1 and L2 are the relative luminance of the lighter and darker colors. Luminance comes from the sRGB values, so the number matches what screen readers and audit tools report.
What counts as large text for WCAG?
Large text is at least 24px, or 18.66px (14pt) when bold. Large text passes AA at 3:1 and AAA at 4.5:1, so a color pair that fails for body copy can still pass for headings.
What colors can I paste in?
Hex (#1a2b3c or #abc), rgb() and named CSS colors all work. Use the color pickers or type a value, and the checker normalizes it and shows the ratio instantly.
How do I fix a failing color?
Use the nearest passing color button. It keeps your hue and adjusts the lightness until the pair meets AA, so you get an on-brand color that passes rather than defaulting to pure black or white.
Does contrast affect SEO?
Not directly, but poor contrast hurts readability and accessibility, which affects engagement and can trigger accessibility complaints. Legible text is also part of Google page experience.
Check one pair here. Find every low-contrast element with SiteAuditLint.
Contrast problems hide in templates, hover states and overlays. The free desktop crawler flags low-contrast text across all your pages, so you fix the source once.
Download SiteAuditLint