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.
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.
C Contrast RatioThis | ||||
|---|---|---|---|---|
| Starting price | Free | Free | Free | Free |
| Pricing model | Free | Free | Free | Free |
| Platforms | Web | Web | Web | Web |
| Top features |
|
| — |
|
| Rating | — | — | — | — |
Abstract wall art prints inspired by minimalism, Bauhaus, and the '90s with free international shipp...
Discover packaging design news, awards, and insights for CPG brands, designers, and agencies
Discover daily logo design, branding, and packaging inspiration with expert commentary and archival ...
A pattern library for building accessible web interfaces with component design best practices
Check WCAG color contrast ratios instantly to ensure your website text meets accessibility standards