Website Contrast Audit Tool

Automatically scan your website for WCAG 2.1 contrast compliance issues. Get detailed reports with recommendations to improve your site's accessibility.

Analysis Mode

🆓 Free Light Mode - Quick screenshot preview

CSS selector to limit scan area

WCAG 2.1 Compliant

Full compliance checking against WCAG 2.1 AA and AAA standards for text contrast ratios.

Automated Scanning

Powered by Playwright browser automation to scan your entire website for contrast issues.

Smart Recommendations

Get specific color suggestions and CSS fixes to resolve contrast issues automatically.

How It Works

1

Enter URL

Submit your website URL for analysis

2

Automated Scan

Our bot scans all text elements and interactive components

3

Analyze Contrast

Calculate contrast ratios and check WCAG compliance

4

Get Report

Receive detailed report with fix recommendations

Understanding Color Contrast and Accessibility

Color contrast refers to the difference in luminance between a foreground element (typically text) and its background. High contrast makes content easy to read, while low contrast forces users to strain their eyes or may make content completely invisible to some people. Accessibility guidelines exist to ensure that digital content is usable by everyone, including the estimated 300 million people worldwide who experience some form of color vision deficiency.

The Web Content Accessibility Guidelines (WCAG), published by the World Wide Web Consortium (W3C), define specific contrast ratios that web content must meet. These guidelines are organized into two conformance levels relevant to contrast: AA (minimum) and AAA (enhanced). Meeting these standards is not just about inclusivity — in many countries, it is a legal requirement for public-facing websites.

WCAG Contrast Ratio Requirements

Contrast ratios are expressed as a number from 1:1 (no contrast, identical colors) to 21:1 (maximum contrast, black on white). WCAG 2.1 Level AA requires a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text (defined as 18pt or 14pt bold and above). Level AAA raises the bar to 7:1 for normal text and 4.5:1 for large text. Non-text elements like icons, form borders, and focus indicators require at least a 3:1 ratio against adjacent colors.

Why Contrast Matters

Readability and User Experience

Text that does not meet minimum contrast ratios is difficult to read under normal conditions and becomes nearly impossible in challenging environments such as bright sunlight on mobile screens or dimly lit rooms. Poor contrast increases reading time, causes eye fatigue, and leads to higher bounce rates on websites. Studies show that users make judgments about a website's credibility within seconds, and unreadable text is one of the fastest ways to lose trust.

Accessibility and Inclusion

Approximately 8% of men and 0.5% of women of Northern European descent have some form of color vision deficiency. Low-vision users, older adults with declining eyesight, and anyone using a low-quality display also benefit from adequate contrast. Designing with proper contrast ensures your content reaches the widest possible audience and provides an equitable experience for all users.

Legal Requirements

Many jurisdictions require websites to meet WCAG 2.1 AA standards. In the United States, the Americans with Disabilities Act (ADA) has been interpreted to cover websites, and non-compliance has led to lawsuits. The European Accessibility Act requires digital products and services to be accessible by 2025. In Canada, the Accessible Canada Act sets similar mandates. Proactively auditing your site for contrast issues helps avoid legal risk while improving the experience for all visitors.

How Contrast Ratio is Calculated

The contrast ratio formula compares the relative luminance of two colors. Relative luminance is calculated by converting sRGB values to linear light values and weighting each channel according to human perception (green contributes the most, blue the least). The ratio is then computed as (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color's luminance and L2 is the darker color's luminance. Our tool automates this entire calculation and flags any element that falls below the required threshold.

Related Color Tools

After fixing contrast issues, fine-tune your color choices with the Color Wheel to find accessible harmonies. Convert between color formats using the Color Converter. Create accessible gradient backgrounds with the Gradient Maker, or blend two colors to discover accessible midpoints. Test your own color perception with the Color Vision Test. Browse all our free color tools.

Frequently Asked Questions

What is WCAG?

WCAG stands for Web Content Accessibility Guidelines. It is an internationally recognized set of recommendations published by the W3C that defines how to make web content more accessible to people with disabilities. WCAG covers contrast, text alternatives, keyboard navigation, and many other aspects of digital accessibility. The current version is WCAG 2.1, with WCAG 2.2 also available.

What contrast ratio is needed for WCAG AA compliance?

For WCAG 2.1 Level AA, normal-sized text requires a minimum contrast ratio of 4.5:1 against its background. Large text (18pt regular or 14pt bold and above) requires a minimum of 3:1. Non-text UI components and graphical objects require at least 3:1 against adjacent colors.

What is the difference between WCAG AA and AAA?

AA is the minimum recommended conformance level and requires 4.5:1 contrast for normal text. AAA is the enhanced level and requires 7:1 for normal text and 4.5:1 for large text. Most organizations target AA as the baseline, while AAA is recommended for content aimed at users with visual impairments.

How do I fix contrast issues on my website?

Start by running a contrast audit using our tool above. For each failing element, you can darken the text color, lighten the background, or increase the font size. Our tool provides specific color suggestions that meet the required ratio while staying as close as possible to your original design intent.

Does color contrast only matter for text?

No. WCAG 2.1 also requires sufficient contrast for non-text elements such as icons, form input borders, focus indicators, and interactive controls. These elements must maintain at least a 3:1 contrast ratio against their adjacent backgrounds to be clearly perceivable by all users.