Contrast Checker: Instantly Test and Fix Your WCAG Color Ratios

Good design is accessible design. The foundation of digital accessibility starts with a simple but critical element: color contrast. Get it right, and you create clarity for everyone. Get it wrong, and you exclude millions of users and risk legal non-compliance.

Use the free AChecker Contrast Checker below to get an instant pass/fail result, then read on to understand the rules, fix common issues, and ensure your digital products are compliant and usable for all.

Color Contrast Checker

Live Preview

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

Normal text bold (16px) - The quick brown fox jumps over the lazy dog.

Large text (24px) - The quick brown fox jumps.

Large text bold (18px+) - The quick brown fox jumps.

Input Field
Checkbox
Foreground: #000000
Background: #FFFFFF
What are you testing?

For body text, headings, and labels

Text Size & Weight

Large text: 18pt (24px) or 14pt (18.67px) bold

Contrast Ratio
21.00:1
Testing: Normal Text
WCAG AAPass
Required: 4.5:1
WCAG AAAPass
Required: 7:1

Complete Results

Normal Text
AA (4.5:1)AAA (7:1)
Large Text
AA (3:1)AAA (4.5:1)
UI Components
AA (3:1)N/A

What Is a Color Contrast Checker?

A color contrast checker is a tool that measures the difference in perceived luminance (or brightness) between two colors: a foreground color (like text or an icon) and its background. It calculates this difference as a ratio, such as 4.5:1. This ratio is then compared against the standards set by the Web Content Accessibility Guidelines (WCAG) to determine if there is enough contrast for people with visual impairments to read and interact with your content.

4.5:1
Normal text (WCAG AA)
3:1
Large text (WCAG AA)
7:1
Normal text (WCAG AAA)
3:1
UI components (WCAG AA)

Important: WCAG does not permit rounding. A ratio of 4.499:1 is a failure.

How to Use the AChecker Contrast Checker: A Step-by-Step Guide

Our tool gives you actionable results in under a minute. Here's how to use it for text, user interface (UI) components, and graphics.

1

Input Your Foreground and Background Colors

Use the color pickers or enter the HEX or RGB values for the two colors you want to test. For example, test your primary button text color against the button's background color.

2

Select Text Size and Font Weight

WCAG has different requirements for normal and large text. Select the correct option to get an accurate result.

What is "Large Text"? Text that is at least 18pt (approximately 24px) or 14pt (approximately 18.7px) and bold.

3

Interpret the Pass/Fail Results

The tool will instantly show you the contrast ratio and whether it passes or fails WCAG Level AA and the stricter Level AAA. For most legal and commercial purposes, Level AA is the target standard.

4

Check Non-Text Elements (Icons, Borders, Charts)

Contrast isn't just for text. Use the "UI Components" mode to check important non-text elements against the 3:1 ratio. This includes borders of input fields, checkmarks, slider thumbs, chart segments, and focus indicators.

Understanding WCAG Contrast Ratios in Detail

The numbers aren't arbitrary. They are based on extensive research into human vision and readability detailed in the Web Content Accessibility Guidelines.

Conformance LevelNormal Text (<18pt or <14pt bold)Large Text (18pt+ or 14pt+ bold)
WCAG AA4.5:13:1
WCAG AAA7:14.5:1

Beyond Text: The 3:1 Rule for Non-Text Contrast

Introduced in WCAG 2.1, Success Criterion 1.4.11 Non-text Contrast was a game-changer. It mandates a 3:1 contrast ratio for user interface components (like input borders and checkboxes) and essential parts of graphics (like bars in a bar chart).

A Practical Guide to Fixing Contrast Failures

So you've found a color combination that fails. Don't panic. You can often fix it without a complete brand redesign.

How to Adjust Colors Without Breaking Your Brand

1

Adjust Lightness

This is the most effective fix. Keep the hue and saturation the same, but make the lighter color lighter or the darker color darker.

2

Use an Outline or Shadow

For text on a busy image or gradient, adding a subtle but high-contrast text-shadow can make it readable.

3

Add a Background Layer

For buttons or callouts with low-contrast brand colors, place them inside a container with a compliant background.

4

Increase Font Weight

Bumping text up from normal to bold can significantly improve legibility, even if it doesn't change the contrast ratio itself.

Mastering Edge Cases: Gradients, Overlays, and States

Gradients:When testing text against a gradient, you must test the part of the gradient with the lowest contrast.
Text on Images:Ensure the text has sufficient contrast against every part of the image it overlaps. A semi-transparent overlay behind the text is a common and effective technique.
Component States:Remember to check the contrast for all interactive states: hover, focus, and active. The focus indicator must have a 3:1 contrast against its background.

Why Contrast Matters: Global Accessibility Laws at a Glance

Digital accessibility is not just a best practice; it's a legal requirement in most parts of the world. Failing to meet WCAG contrast standards can expose organizations to lawsuits and fines. While laws vary, they almost universally point to WCAG 2.1 Level AA as the benchmark.

USA: DOJ Title II and Section 508

In the US, Section 508 requires federal agencies to follow WCAG. For state and local governments, a 2024 Department of Justice rule formally adopted WCAG 2.1 AA under the Americans with Disabilities Act (ADA).

EU, UK, Canada, and Australia

Across the European Union, the UK, Canada, and Australia, regulations for public sector bodies and increasingly for the private sector are all harmonized with the WCAG 2.1 AA standard. Meeting this level is the safest path to global compliance.

The Future of Contrast: A Quick Look at APCA

You may hear about the Advanced Perceptual Contrast Algorithm (APCA). It's a new method for calculating contrast that is a candidate for the future WCAG 3.0. However, for now, APCA is not the legal standard. All current laws and regulations are based on the WCAG 2.x contrast ratio algorithm. This tool uses the official WCAG 2.x formula.

Frequently Asked Questions about Contrast Checking

Your Next Step: Go Beyond Contrast with a Full AChecker Audit

Perfecting your color contrast is a huge step toward an accessible website. But it's just one piece of the puzzle.

A truly accessible experience also requires keyboard navigability, proper alt text for images, semantic HTML, and much more. Use our full Website Accessibility Checker to run a comprehensive audit.

© 2025 Accessibility Checker. Built for WCAG compliance.