WCAG Color Contrast Checker
Last updated:
Check any text and background colour pair against WCAG 2.2 accessibility standards. See the contrast ratio, AA/AAA compliance for normal and large text, and get auto-suggested accessible alternatives. 100% client-side, instant, free.
Live Preview
Normal text looks like this at 16px. Check readability across different sizes and weights.
Large text at 24px is easier to read.
Bold 14pt+ text also qualifies as large.
Small text at 12px is hardest to read.
We build this
Design issues can weaken trust and usability.
We design fast, accessible, SEO-ready websites and test the relevant checks before launch. Transparent pricing from $777.
Like fast, clean websites? So do your clients.
We design and build clean, fast websites with clear conversion paths. From $777, delivered in about a week.
More options Send us this result or get a copy by email
How the Color Contrast Checker Works
This tool evaluates color accessibility using the WCAG 2.2 algorithm:
- Enter two colors, use the color picker or type hex codes for your foreground (text) and background colors. The tool updates in real time as you adjust.
- Contrast ratio calculation, the tool calculates the relative luminance of both colors and computes the contrast ratio using the WCAG formula: (L1 + 0.05) / (L2 + 0.05).
- WCAG compliance check, the ratio is tested against five criteria: AA Normal (4.5:1), AA Large (3:1), AAA Normal (7:1), AAA Large (4.5:1), and UI Components (3:1).
- Live preview, see your colors in action with sample text at different sizes (normal, large, bold, small) to visually confirm readability.
- Auto-suggestion, if your colors fail any WCAG level, the tool suggests the closest accessible foreground color by adjusting lightness while preserving hue and saturation.
Why Color Contrast Matters for Web Accessibility
Color contrast is one of the most fundamental, and most commonly violated, web accessibility requirements:
- 1 in 12 men are color blind, approximately 8% of males and 0.5% of females have some form of color vision deficiency. Low contrast makes your content unreadable for millions of potential visitors.
- Accessibility requirements, a passing color pair addresses a contrast criterion, not a whole-site audit or legal compliance. Requirements depend on jurisdiction and service; see the European Accessibility Act scope.
- Mobile and outdoor readability, even users with perfect vision struggle with low-contrast text on mobile devices in bright sunlight. Good contrast benefits all users in all conditions.
- Usability and QA, automated tools such as Lighthouse can flag some contrast failures. Contrast is separate from Core Web Vitals, and a passing color pair alone does not establish accessibility conformance.
- Brand trust and professionalism, accessible design signals that you care about all users. It builds trust, reduces bounce rates, and improves overall user experience metrics.
Use our Website Accessibility Checker to screen additional server-rendered markup patterns. It is not a browser, keyboard, screen-reader, or conformance audit. Also check what fonts your site loads, because text size and weight affect which contrast threshold applies, and review the page at mobile sizes and in realistic lighting.
WCAG 2.2 Contrast Requirements at a Glance
Quick reference for the contrast ratios you need to hit:
| Content type | AA (minimum) | AAA (enhanced) |
|---|---|---|
| Normal text under 18pt / 24px | 4.5:1 | 7:1 |
| Large text 18pt+/24px+, or 14pt+/18.66px+ bold | 3:1 | 4.5:1 |
| UI components & graphics icons, inputs, focus rings | 3:1 | 3:1 |
AA is the legal baseline in most jurisdictions and what most sites should target for every text element. AAA (7:1 normal text) is recommended for critical content like legal, medical, or government information.
For comprehensive web design that meets accessibility standards from the ground up, explore our web design services and SEO services.
Contrast Ratio Formula
WCAG 2.x defines the contrast ratio through relative luminance: the brightness of a color on a scale from 0 for black to 1 for white. The checker calculates it in three steps.
- Linearize each channel. Divide the red, green and blue values by 255. A value of 0.04045 or less is divided by 12.92; a higher value becomes ((value + 0.055) / 1.055) raised to the power 2.4.
- Weight the channels. Relative luminance L = 0.2126 × R + 0.7152 × G + 0.0722 × B, using the linear values.
- Compare the two colors. Contrast ratio = (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color's luminance and L2 the darker one's.
Worked example: #767676 text on white. Each channel is 118, and 118 / 255 = 0.4627. Linearized, that is ((0.4627 + 0.055) / 1.055)2.4 = 0.1812. The three channels are equal, so L = 0.1812. White has L = 1, so the ratio is (1 + 0.05) / (0.1812 + 0.05) = 1.05 / 0.2312 = 4.54:1.
That passes AA for normal text with little room to spare. One step lighter, #777777, gives 4.48:1 and fails.
Next steps
Color Contrast Checker related tools and articles
Continue with the closest follow-up checks and guides based on this tool's topic, crawl intent, and optimization workflow.
WCAG Color Contrast Checker: FAQ
What results does this Color Contrast Checker show?
What contrast ratio does WCAG AA require?
What is a good contrast ratio?
When may I use the large-text result?
How does the calculator derive the ratio?
How does the suggested accessible foreground color work?
Which color formats can I enter?
Does a passing pair prove the component is accessible?
Are the colors I test sent to a server?
Free Website Audit
Not sure what to fix first on your own website? We'll review it and tell you, in plain English, within 48 hours. Free and non-obligatory.
Need Help with Web Accessibility?
We build accessible, WCAG-compliant websites that work for everyone, and rank better too.