Skip to main content

Color Contrast Checker

Check color contrast for accessibility compliance

Color contrast checker tool. Test color combinations for WCAG accessibility compliance. Check contrast ratios for text readability. Ensure your designs are

Sample text for contrast preview
Contrast Ratio:21.00:1
WCAG AA:✓ Pass
WCAG AAA:✓ Pass

How to check color contrast?

Checking color contrast for accessibility is easy:

  • Select your foreground color (text color) using the color picker or enter a hex code. This is the color your text will appear in - typically black, dark gray, or a brand color used for headings and body text. Be precise here since small changes in darkness can make the difference between passing and failing accessibility standards.
  • Select your background color using the color picker or enter a hex code. This is the color behind your text - could be white, a light tint, a gradient, or even an image. Remember that contrast is calculated between the two colors, so swapping foreground and background produces the same ratio.
  • Choose the text size: Normal text (16px+) or Large text (18px+ or 14px+ bold). Larger text requires lower contrast ratios to meet accessibility standards, which is why headings often pass more easily than body text. Selecting the correct category ensures accurate compliance checking.
  • The tool automatically calculates the contrast ratio and shows WCAG compliance status. You'll see the exact numerical ratio (like 7.5:1) along with clear AA and AAA pass/fail indicators for both normal and large text sizes. Green checkmarks indicate passing combinations, red X marks signal problems.
  • See if your color combination meets AA or AAA accessibility standards. AA is the minimum legal requirement in many jurisdictions, while AAA represents enhanced accessibility for users with more severe visual impairments. Use the suggestions feature to find alternative colors that pass if your current combination fails.

Related Tools

You May Also Need

Understanding color contrast and why it matters for real users

Color contrast is the difference in brightness and color between text (foreground) and its background. Sufficient contrast ensures that text is readable for all users, including those with visual impairments, color blindness, or when viewing content in various lighting conditions. The human eye perceives contrast based on luminance differences - the greater the brightness gap between text and background, the easier it is to read. People with low vision, cataracts, or age-related vision decline need significantly higher contrast than young, healthy eyes. Even users with perfect vision struggle with low-contrast text in bright sunlight, on reflective screens, or when squinting. WCAG guidelines specify minimum contrast ratios based on extensive research into readability thresholds. The 4.5:1 ratio for normal text was determined through studies showing that this level allows most people with moderate visual impairments to read comfortably. Meeting these standards isn't just about compliance - it's about making your content genuinely usable by everyone.

Common contrast pitfalls and how to fix them

Many designers unknowingly create inaccessible color combinations. Light gray text on white backgrounds is perhaps the most common offender - subtle gray tones that look elegant in design mockups often fail contrast checks spectacularly. Yellow or pastel colors on white backgrounds present similar challenges, as these hues lack sufficient luminance difference. White text on light-colored backgrounds creates the opposite problem - the text disappears into the bright background. Gradient backgrounds add complexity because contrast varies across the gradient - you must test against the lightest part where text will appear. Image backgrounds require special handling; always provide a semi-transparent overlay or solid fallback to ensure consistent contrast. Pastel color schemes, while aesthetically pleasing, frequently produce insufficient contrast ratios. The solution is simple: darken your text colors slightly, lighten your backgrounds, or choose inherently high-contrast combinations. Dark navy on white, charcoal on cream, or deep burgundy on ivory all pass easily while maintaining sophisticated aesthetics.

Frequently Asked Questions (FAQs)

What is WCAG?

WCAG (Web Content Accessibility Guidelines) are international standards for web accessibility developed by the W3C. They provide guidelines for making web content accessible to people with disabilities.

What contrast ratio do I need?

For normal text (16px+), you need at least 4.5:1 for AA compliance or 7:1 for AAA. For large text (18px+ or 14px+ bold), you need at least 3:1 for AA or 4.5:1 for AAA.

What's the difference between AA and AAA?

AA is the minimum standard for accessibility compliance. AAA is the enhanced standard providing better contrast for users with more severe visual impairments. Most websites aim for AA compliance.

Can I use any color combination if it passes?

While meeting contrast ratios is important, also consider other factors like color blindness (avoid red-green combinations), readability in different lighting, and overall design aesthetics.

What if my colors don't meet the requirements?

The tool provides suggestions for adjusting colors. You can darken text, lighten backgrounds, or choose alternative color combinations that meet accessibility standards.

Do I need to check contrast for all text?

Yes, you should check contrast for all text that users need to read, including headings, body text, links, buttons, and form labels. Decorative text that doesn't convey information may be exempt.

Recently Used Tools