Reach a Wider Audience
Make your content usable for the 1 in 12 men and 1 in 200 women with color vision deficiency, as well as those with low vision.
Check color contrast ratios against WCAG 2.1 guidelines instantly. Ensure your text is readable and your design is accessible to everyone. Free and easy to use.
A contrast checker evaluates the readability of text against a background color by calculating the WCAG (Web Content Accessibility Guidelines) contrast ratio. The ratio ranges from 1:1 (no contrast) to 21:1 (maximum contrast between black and white). WCAG 2.1 requires at least 4.5:1 for normal text and 3:1 for large text. This tool computes ratios using the official W3C formula, entirely in your browser.
Real-time contrast ratio calculation with AA and AAA pass/fail indicators. Live text preview, instant HEX input, and copy-ready values — all in your browser.
Input the HEX codes for text and background colors.
See how your text looks in real-time.
Review the calculated contrast ratio.
Check if it passes WCAG AA/AAA standards.
Make your content usable for the 1 in 12 men and 1 in 200 women with color vision deficiency, as well as those with low vision.
Good contrast improves readability for everyone, especially on dim screens or in bright sunlight.
Checks against both AA and AAA conformance levels, with clear pass/fail indicators for normal and large text.
Helps you meet accessibility requirements under the ADA, EAA, and Section 508.
The Web Content Accessibility Guidelines (WCAG) 2.1, published by the W3C, define minimum contrast ratios to ensure text is readable by people with visual impairments. The guidelines specify three conformance levels: A (minimum), AA (standard), and AAA (enhanced). For Level AA, the requirements are 4.5:1 for normal text (below 18pt or 14pt bold) and 3:1 for large text (18pt+ or 14pt+ bold). For Level AAA, the requirements are stricter: 7:1 for normal text and 4.5:1 for large text.
The contrast ratio is calculated using the relative luminance of the two colors. Relative luminance is a weighted sum of the linearized RGB channels: L = 0.2126*R + 0.7152*G + 0.0722*B, where R, G, and B are gamma-corrected values (each channel is linearized by applying: if c <= 0.03928 then c/12.92 else ((c+0.055)/1.055)^2.4). The contrast ratio is then (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color and L2 is the darker color. The 0.05 offset accounts for ambient light flare on the screen.
These requirements are not arbitrary -- they're based on extensive research on human vision. About 8% of men and 0.5% of women have some form of color vision deficiency (color blindness). Low contrast affects not only these users but also anyone viewing a screen in bright sunlight, on a low-quality display, or at an angle. Meeting WCAG AA contrast requirements improves readability for everyone, not just users with disabilities. In many jurisdictions (EU, US ADA), WCAG compliance is a legal requirement for public-facing websites.
The most common contrast mistake is using light gray text on a white background. A common design trend uses #999 or #AAA gray text for secondary information, but these colors have contrast ratios of 2.85:1 and 2.32:1 respectively -- well below the 4.5:1 minimum. For secondary text on white, use #767676 (4.54:1) or darker. Another common issue is using brand colors that look good visually but fail contrast checks -- a brand's light blue (#00BFFF) on white has a ratio of 2.32:1, failing WCAG AA. Darken brand colors for text use or use them only for non-text elements (borders, backgrounds, icons).
For large text (headings, buttons), the 3:1 requirement is more forgiving, but don't abuse it. Large text that barely passes 3:1 is still hard to read for many users. Aim for 4.5:1 whenever possible, regardless of text size. When using colored backgrounds, test both the text color and any text that might appear on hover or focus states. CSS custom properties (variables) make it easier to maintain consistent contrast -- define your color palette with contrast-tested pairs and reuse them throughout your design system.
Requires 4.5:1 for normal text, 3:1 for large text. The standard goal for most websites.
Requires 7:1 for normal text, 4.5:1 for large text. Enhanced accessibility for users with significant vision loss.
A side-by-side comparison of popular WCAG contrast checking tools.
| Feature | NovaTools | WebAIM | Contrast-Ratio.com |
|---|---|---|---|
| WCAG 2.1 AA + AAA | Both levels | ||
| Live preview as you type | Instant | Submit | |
| HEX + RGB input | Both | HEX only | HEX only |
| Color picker integration | EyeDropper | ||
| Large text threshold | 18pt / 14pt bold | ||
| Privacy (no server) | 100% local |
Our contrast checker uses the exact W3C luminance formula and runs entirely in your browser. All calculations are instant -- no server roundtrips, no page reloads, no tracking of your color choices.
This contrast checker runs entirely in your browser using standard JavaScript math and the WCAG 2.
Learn the fundamentals of web accessibility and color contrast. Understand WCAG ratings (AA vs. AAA) and use our quick checks and practical fixes to make your UI readable for everyone.
Learn the difference between HEX, RGB and HSL color formats, when to use each, how to convert between them, and CSS tips like color-mix.
Your logo is a goldmine of color information. Learn how to extract key colors from your logo and expand them into a full, versatile brand palette for your website, social media, and marketing materials.