FC

♿ Color Contrast Checker (WCAG)

Check color contrast ratios against WCAG 2.1 AA/AAA standards for accessible web design. Required for ADA compliance.

16px (Normal text)

Contrast Ratio

14.05:1

AAA

WCAG 2.1 Compliance

AA - Normal text (4.5:1)
AA - Large text (3:1)
AAA - Normal text (7:1)
AAA - Large text (4.5:1)

Large text = 18px+ regular or 14px+ bold. Your current size is normal text.

Live Preview

The quick brown fox jumps over the lazy dog. (8px)

The quick brown fox jumps over the lazy dog. (12px)

-> The quick brown fox jumps over the lazy dog. (16px)

The quick brown fox jumps over the lazy dog. (20px)

The quick brown fox jumps over the lazy dog. (24px)

The quick brown fox jumps over the lazy dog. (32px)

The quick brown fox jumps over the lazy dog. (48px)

Try Common Combinations

Complete Guide

Color Contrast Checker -- Complete USA Guide 2026

The Color Contrast Checker verifies your text and background color combinations against WCAG 2.1 accessibility standards - the global benchmark for web accessibility that is legally required under the Americans with Disabilities Act (ADA) for US websites, apps, and digital content.

The Web Content Accessibility Guidelines (WCAG) specify minimum contrast ratios to ensure text is readable for users with low vision or color blindness. Level AA (the legal minimum for most US government, healthcare, and enterprise websites) requires a 4.5:1 contrast ratio for normal text and 3:1 for large text. Level AAA (the highest standard, recommended for critical text) requires 7:1 for normal text.

Our free WCAG Color Contrast Checker instantly calculates the exact contrast ratio between any two colors, shows pass/fail status for all four WCAG 2.1 criteria, provides a live text preview at multiple font sizes, and includes common color combinations as starting points. No extensions, no plugins, no account - just open and start testing.

🔬 How This Calculator Works

Contrast ratio is calculated using the WCAG 2.1 relative luminance formula specified by W3C. Each color is first converted to relative luminance using the sRGB color space: linearize each channel (reverse gamma correction), then combine using the standard luminance weights (0.2126 for red, 0.7152 for green, 0.0722 for blue). The contrast ratio is then (L1 + 0.05) / (L2 + 0.05) where L1 is the lighter color's luminance.

This is the exact formula used by browser developer tools, screen readers, and professional accessibility audit tools like axe, WAVE, and Lighthouse. All calculations are performed in your browser with zero data transmission.

The tool automatically detects whether your current font size qualifies as 'large text' under WCAG definitions: 18px+ regular weight, or 14px+ bold weight. Large text has lower contrast requirements (3:1 for AA, 4.5:1 for AAA) because it is inherently more readable.

✅ What You Can Calculate

ADA & WCAG 2.1 Compliance Testing

Check all four WCAG 2.1 contrast requirements (AA/AAA for normal and large text) in one view. Essential for US websites required to comply with the Americans with Disabilities Act.

Real-Time Live Preview

See exactly how your color combination looks with actual text at multiple font sizes. No guessing - see the result before shipping.

Exact Ratio Calculation

Get the precise contrast ratio (e.g., 5.24:1) not just pass/fail. This helps you make informed design decisions about borderline colors.

Quick-Load Sample Combinations

One-click common color combinations to see their contrast performance. Great starting point for building an accessible color palette from scratch.

Font Size & Weight Aware

Automatically adjusts WCAG thresholds based on your font size and weight, since large text has different requirements than normal body text.

Zero Cost Accessibility Auditing

Professional accessibility audits can cost hundreds to thousands of dollars. This tool provides the core contrast check instantly, for free, on every page you build.

🎯 Real Scenarios & Use Cases

Government Website Developers

US federal and state government websites are legally required to meet WCAG 2.0 AA minimum standards under Section 508 of the Rehabilitation Act. Test every color combination during development.

Healthcare Web Development

Healthcare websites serving Medicare, Medicaid, and ADA-protected patients face particular accessibility scrutiny. Verify all text contrast before deployment.

Education Technology

EdTech platforms serving K-12 and higher education must meet accessibility standards under IDEA and ADA. Check contrast for all student-facing interfaces.

SaaS Product Teams

Enterprise SaaS products with institutional clients increasingly require WCAG 2.1 AA compliance as a contract condition. Build accessibility into your design system from day one.

Accessibility Auditors

Professional accessibility consultants use contrast checkers as part of comprehensive WCAG audits for clients facing ADA complaints or proactive compliance programs.

Brand Designers

Verify that brand colors work in digital contexts with sufficient contrast before finalizing brand guidelines that will govern years of design work.

💡 Pro Tips for Accurate Results

Always test contrast for every text-background combination in your design - not just body text. Check headings, buttons, labels, placeholder text, disabled states, and link colors. Each combination must independently meet WCAG standards.

The 4.5:1 AA ratio is a minimum, not a target. Whenever possible, aim for 7:1 (AAA level) for body text - this creates a more comfortable reading experience for all users, including those without visual impairments, and provides margin for rendering differences across devices.

Watch out for UI elements that are often overlooked: placeholder text in form fields, disabled button text, and text over image or gradient backgrounds. Placeholder text particularly often fails contrast requirements in popular design systems.

Test with real devices, not just tools. Some color combinations technically pass WCAG ratios but look poor on specific screen types or in bright ambient light. The combination of tool verification and real-device testing gives the highest confidence in accessibility compliance.

For the US market, remember that the Department of Justice has clarified that ADA Title III applies to websites - court precedents like Robles v. Domino's Pizza have established legal liability for inaccessible web content.

🔢 Data Sources & Methodology

The WCAG contrast ratio algorithm is based on the relative luminance formula specified in IEC 61966-2-1 (sRGB standard). The formula first linearizes gamma-encoded RGB values (reversing the display gamma), then computes luminance using perceptual weights derived from human photoreceptor sensitivity: 0.2126R + 0.7152G + 0.0722B, where green receives the highest weight because human eyes are most sensitive to green wavelengths.

A landmark 2008 study by Gregg Vanderheiden and others for the W3C found that approximately 1 in 12 men (8%) and 1 in 200 women (0.5%) have some form of color vision deficiency in the United States - approximately 13 million Americans. For text contrast specifically, the 4.5:1 AA ratio was validated against subjects with moderate visual impairments as the minimum for readable text without assistive technology.

The proposed WCAG 3.0 introduces APCA (Advanced Perceptual Contrast Algorithm) which provides more nuanced contrast requirements based on actual typography research - accounting for font weight, size, and polarity (light vs. dark backgrounds). APCA corrects several known issues with the WCAG 2.x formula, particularly its poor performance for dark mode interfaces and large display text.

🏁 Bottom Line

The Color Contrast Checker makes WCAG accessibility testing fast, free, and accessible to every American web developer and designer. Build accessible websites from the start - not as an afterthought - and protect your organization from ADA liability while creating better experiences for all users.

Use this alongside our Color Converter and Color Palette Generator for a complete accessibility-first color workflow.

What contrast ratio do I need to pass WCAG AA?

WCAG 2.1 AA requires a contrast ratio of at least 4.5:1 for normal text (under 18pt or 14pt bold) and 3:1 for large text (18pt+ or 14pt+ bold). UI components and graphical elements (icons, chart data markers, input borders) also require 3:1 against adjacent colors. WCAG AAA is stricter: 7:1 for normal text and 4.5:1 for large text. Most legal accessibility requirements (ADA, Section 508, EN 301 549) align with WCAG 2.1 AA. AAA is considered best practice for highly accessible experiences.

How is the contrast ratio calculated?

The formula is (L1 + 0.05) / (L2 + 0.05), where L1 is the relative luminance of the lighter color and L2 is the luminance of the darker. Relative luminance is calculated by converting each RGB channel to a linear value (gamma-corrected), then applying weights 0.2126R + 0.7152G + 0.0722B. The weights reflect human visual perception: the eye is most sensitive to green, then red, then blue. Pure white has luminance 1.0, pure black 0.0, giving a maximum possible contrast ratio of 21:1.

My design has a gradient background — which color do I test?

For gradient backgrounds under text, test the worst case — the point along the gradient where contrast is lowest. If text sits over a gradient from white to dark blue, the white end gives the lowest contrast for dark text and the dark blue end gives the lowest contrast for light text. Test both extremes and ensure both pass. If either fails, consider a semi-transparent scrim behind the text area. Never test only the average or middle color of a gradient.

Does color alone determine contrast — what about font weight and size?

The contrast ratio is purely a function of the two colors. Whether you need 4.5:1 or 3:1 depends on font size and weight. 'Large text' in WCAG is 18pt+ (24px+) in normal weight, or 14pt+ (~18.67px+) in bold. If your UI uses bold text at 16px, it qualifies as large text and needs only 3:1. Decorative text, logotypes, and text in inactive UI components are exempt from contrast requirements — but any text conveying information must meet the threshold.

What contrast ratio do I need for placeholder text?

Placeholder text in form inputs must meet the same 4.5:1 ratio as regular text if it conveys information the user needs to complete the field. The common pattern of very light gray placeholder text (#999 on white = about 2.85:1) fails WCAG AA. If using placeholders as the only indication of what a field requires, use dark gray like #767676 on white (exactly 4.54:1, the minimum AA pass). Better practice: use visible labels above inputs and reserve placeholder for example format hints.

Why does a bright orange pass on white but fail on yellow?

Contrast depends on the relative luminance difference between two colors. White has very high luminance (1.0), so a dark-enough orange against white can achieve 4.5:1. Yellow also has very high luminance (pure #ffff00 ≈ 0.93), so two high-luminance colors together produce very low contrast — yellow on white is approximately 1.07:1, nearly invisible. Colors that appear vivid and saturated are not necessarily high-contrast — luminance and saturation are separate dimensions.

What color tools on this site work with the contrast checker?

The Color Converter translates Figma HEX values to RGB or HSL for easy input. The Color Palette Generator creates full design-system scales — run each step through the contrast checker to identify which values are usable for text vs background. The CSS Gradient Generator builds gradient backgrounds; use the contrast checker on the lightest and darkest stops. All are in the Dev Tools CSS section.