Contrast Ratio is a free interactive tool that calculates color contrast ratios between background and text colors according to Web Content Accessibility Guidelines (WCAG) standards. It helps web designers, developers, and content creators verify that their websites meet accessibility requirements for readability.
The tool displays contrast ratios in real-time as you input colors, with visual indicators showing whether your color combination meets WCAG standards. It was created by Lea Verou and accounts for semi-transparent backgrounds by including error margins.
You enter your background color and text color into the input fields, and the contrast ratio updates automatically as you type. Hover over the circle indicator to see detailed information about the ratio, and use the swap colors button to reverse background and text values. The tool visually demonstrates how your color combination reads at various font sizes and styles to confirm readability.
Contrast Ratio is ideal for anyone building or auditing websites who needs to comply with WCAG accessibility guidelines without purchasing expensive software. The tool eliminates guesswork by showing real-time feedback on whether colors meet the 4.5:1 standard for normal text or 3:1 for larger text, helping creators avoid accessibility errors before deployment.
Contrast ratio updates automatically as you enter or modify background and text colors.
Sample text demonstrates how readable your color combination is across multiple font sizes and styles.
Swap background and text colors with a single button to quickly test reversed color combinations.
Handles semi-transparent background colors with error margins to account for underlying colors.
Hover over the contrast ratio circle to view detailed information about the current color ratio value.
Use arrow keys to increment or decrement color values in functional notation, with Shift or Alt for finer control.
Tool evaluates colors against Web Content Accessibility Guidelines 2.1 standards for accessibility.
Pricing extracted from the product website and may change. Check the source for current details.
Contrast ratio is the difference between the maximum and minimum brightness of a computer display, helping measure content readability. Higher numbers indicate better readability; lower numbers suggest poor readability. A ratio above 4.5:1 is good for normal text, while larger text can dip to 3:1.
Relative luminance is the relative brightness of any point in a colorspace, normalized to 0 for the darkest black and 1 for the lightest white, as defined by the World Wide Web Consortium.
C Contrast RatioThis |
|---|
Use the Contrast Ratio tool to modify your background and font colors to create a more accessible website. Once you implement the improved colors, you should no longer receive the Google Lighthouse error about insufficient contrast.
Yes — Contrast Ratio is free to use. See the pricing section for any optional add-ons.
Contrast Ratio is available on: Web.
| Starting price | Free | — | Free | Free |
| Pricing model | Free | unknown | Free | Free |
| Platforms | Web | Web | Web | Web |
| Top features |
|
|
|
|
| Rating | — | — | — | — |
Download free high-quality fonts for designers and creators — serif, sans serif, script, display, an...
Stay sharp on UX research and product decisions — get news, strategy, tactics, and tool guides built...
A conversational podcast for motivated creators — get design advice, side project strategies, and ca...
A twice-monthly digital design podcast covering UX, business, and technology — helping designers bui...