Enter two colors
Pick them with the color pickers or type any CSS color: hex, rgb(), hsl(), or a name.
Enter a text color and a background color to see their contrast ratio and whether they meet WCAG AA and AAA. If they don't, you get the nearest color that does.
Large text sample
This is normal body text at 16 pixels, the size most paragraphs use.
Small text at 12 pixels is the hardest to read.
Button or icon outline
100% private — colors are calculated in your browser and nothing is sent anywhere.
Keep going with your result in another tool. Nothing is uploaded.
Pick them with the color pickers or type any CSS color: hex, rgb(), hsl(), or a name.
You see the contrast ratio and a pass or fail for each WCAG level, with a live preview.
If it fails, choose the suggested color: it keeps the same hue and only changes the lightness.
The Web Content Accessibility Guidelines measure contrast as a ratio between the brightness of two colors, from 1:1 (identical colors) to 21:1 (black on white). The higher the ratio, the easier the text is to read, especially for people with low vision, color blindness, or anyone reading a phone in sunlight. The thresholds are:
Designers love soft gray text on white, and it is the most common failure. Gray
#999999 on white has a ratio of only 2.85:1. Even #777777, which looks
perfectly readable, scores 4.48:1 and misses AA by a hair, while #767676 passes with
4.54:1. That one-step difference is why an exact number matters more than judging by eye.
rgb(),
hsl() and modern formats. Your browser interprets them, so what you enter is what
you get.In Europe, the European Accessibility Act applies to many consumer services since June 2025 and points to the EN 301 549 standard, which is built on WCAG 2.1 level AA. Spanish public-sector sites and apps are covered by Royal Decree 1112/2018 on the same basis, and accessibility claims in the United States are usually judged against WCAG AA. This tool is a design aid and not legal advice.
The WCAG formula is a simplification of how people see. It does not judge text over photos or gradients (test the worst spot), ignores font weight and size beyond the large-text rule, and can be too generous with dark backgrounds. Logos and disabled controls are exempt from the rules.
More utilities that also run without leaving your browser.