WCAG Color Contrast Checker

Ensure your color combinations meet WCAG 2.1 accessibility standards. Check contrast ratios instantly and create inclusive designs that everyone can use.

Loading Color Contrast Checker...

Why Color Contrast Matters

Accessible design isn't optional—it's essential

1 in 5

People Have Visual Impairments

Over 2.2 billion people worldwide have vision impairment or blindness. Poor color contrast makes content inaccessible to millions of potential users.

$6.9B

Market Opportunity

People with disabilities represent a $6.9 billion market. Accessible design isn't just ethical—it's good business.

Legal

Compliance Required

ADA, Section 508, and international laws require digital accessibility. Non-compliance can result in lawsuits and damaged reputation.

Understanding WCAG Standards

What do AA and AAA actually mean?

WCAG Level AA

The Industry Standard

Normal Text: 4.5:1 contrast ratio minimum(Less than 18pt or 14pt bold)
Large Text: 3:1 contrast ratio minimum(18pt+ or 14pt+ bold)

Level AA is the legal requirement for most organizations and covers the majority of accessibility needs. It balances design flexibility with accessibility.

WCAG Level AAA

Enhanced Accessibility

Normal Text: 7:1 contrast ratio minimum(Less than 18pt or 14pt bold)
Large Text: 4.5:1 contrast ratio minimum(18pt+ or 14pt+ bold)

Level AAA provides enhanced contrast for users with more significant vision loss. While not always required, it's recommended for critical content.

How Color Contrast Works

The science behind accessible color combinations

1. Relative Luminance

First, we calculate the relative luminance of each color—a measure of how much light a color emits. This uses the RGB values with gamma correction to match human perception.

L = 0.2126 × R + 0.7152 × G + 0.0722 × B

2. Contrast Ratio Calculation

The contrast ratio is calculated by comparing the relative luminance of the lighter color to the darker color. The result is a number between 1:1 and 21:1.

(L1 + 0.05) / (L2 + 0.05)

3. WCAG Compliance Check

Finally, we compare the ratio against WCAG thresholds. The higher the ratio, the better the contrast. Pure black on white gives the maximum ratio of 21:1.

Best Practices for Accessible Color Contrast

Tips from accessibility experts

Must Have

Test Early and Often

Check contrast ratios during the design phase, not after development. It's easier to adjust colors early than to refactor later.

Must Have

Don't Rely on Color Alone

Use icons, patterns, or text labels in addition to color to convey information. This helps colorblind users and improves overall usability.

Pro Tip

Mind Your States

Check contrast for hover, focus, active, and disabled states. Interactive elements must maintain sufficient contrast in all states.

Suggested

Test with Real Content

Use actual text sizes and weights from your design. Lorem ipsum at 16pt might pass, but your 12pt UI text might fail.

Pro Tip

Build a Compliant Palette

Create a color system with pre-tested combinations. Document which colors work together to ensure consistency across your product.

Consider Context

Low-contrast text might work for decorative elements, but critical information should always exceed minimum requirements.

Common Contrast Mistakes to Avoid

Learn from others' accessibility failures

Gray Text on Gray Backgrounds

The minimalist trend of subtle grays often fails contrast requirements. #666 on #F5F5F5 only gives 3.4:1—not enough for normal text.

Subtle Gray Text

Colored Text on Photos

Text overlays on images are notoriously difficult. Use overlays, shadows, or guaranteed dark/light areas to ensure contrast.

Text on Image

Thin Fonts at Small Sizes

Light or thin font weights reduce effective contrast. If using weights below 400, increase your contrast ratio or text size.

Thin Light Text

Disabled State Invisibility

Disabled buttons still need to be visible. While they can have lower contrast, they should still be distinguishable and readable.

Disabled Button

Color Contrast FAQs

Common questions about WCAG contrast requirements, answered

WCAG 2.1 Level AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. Level AAA is stricter: 7:1 for normal text and 4.5:1 for large text. Most legal standards, including ADA, Section 508, and EN 301 549, reference AA, and it’s what this tool checks by default, so it’s the right target for most sites. AAA suits content aimed at users with significant vision loss, but the W3C doesn’t expect every page to meet it.

WCAG defines large text as 18pt (roughly 24px) or larger at regular weight, or 14pt (roughly 18.5px) or larger if it’s bold. Everything smaller, including most body copy, labels, and captions, still falls under the stricter normal-text ratio even if it looks reasonably big on screen. Font weight matters: 16px regular text always needs 4.5:1 for AA, and it doesn’t qualify as "large" until it’s bold and at least roughly 18.5px (14pt).

Not identically. WCAG explicitly exempts text in inactive/disabled UI components (like a greyed-out "Submit" button), text that’s part of a logo or brand name, and purely decorative text from the 1.4.3 contrast rule. Placeholder text doesn’t get a specific exemption, though. Since it’s functional content users rely on to fill out a form, accessibility audits generally expect it to hit the same 4.5:1 minimum as normal text. The light grey many browsers use by default for placeholders often falls short of that, which is one of the most common contrast failures we see.

Text is only part of it. WCAG 1.4.11 (Non-Text Contrast, Level AA) separately requires a 3:1 ratio for user interface components (button borders, input outlines, toggle and checkbox states) and for graphical objects like icons that convey meaning on their own, measured against their adjacent background. It’s a Level AA-only criterion with no AAA equivalent, so 3:1 is the target regardless of how strict a site’s text-contrast goals are.

Not automatically. The contrast formula only measures the luminance (brightness) difference between two colors. It has no concept of hue, so two colors can clear 4.5:1 and still be nearly indistinguishable to someone with red-green color blindness, which affects roughly 1 in 12 men. Contrast ratio solves "can this text be read at all"; a separate rule, WCAG 1.4.1 (Use of Color), requires that color is never the only way information is conveyed, so pair status colors, charts, and links with icons, text labels, or patterns as backup.

No. The same 4.5:1 (AA) / 7:1 (AAA) thresholds apply no matter which color is the background, since the formula just compares the lighter luminance to the darker one. Light-on-dark is scored the same way as dark-on-light. One dark-mode-specific pitfall worth knowing: pure white text (#FFFFFF) on a near-black background can pass the ratio easily but cause a "halation" glow that’s hard to read for people with astigmatism or light sensitivity. Many accessibility guides recommend an off-white (like #E4E4E7) on a dark grey (like #121212) instead of pure black/white. It still clears AA comfortably while reducing glare.

Not yet, and not for a while. APCA (Advanced Perceptual Contrast Algorithm) was explored as a next-generation, perceptually-based replacement for the current contrast math, but the W3C pulled it from the WCAG 3.0 working draft in 2023 for further evaluation, and WCAG 3.0 itself isn’t expected to reach final "Recommendation" status until around 2028–2030. The WCAG 2.1/2.2 contrast ratio formula (the one this tool uses) remains the current, legally-referenced standard, so there’s no need to design against APCA numbers yet.

Need Help With Accessible Design?

I specialize in creating beautiful, WCAG-compliant design systems. Let me audit your product and ensure full accessibility compliance.

Get an Accessibility Audit