WCAG Color Contrast Checker

Check if your color combinations meet accessibility standards. Verify contrast ratios against WCAG (Web Content Accessibility Guidelines) recommendations and ensure your designs are readable for everyone.

Aa Bb Cc Dd Ee The quick brown fox jumps over the lazy dog.

Foreground (Text) Color

Background Color

Customize Sample Text

👁️

Understanding WCAG Color Contrast

Color contrast is a fundamental aspect of digital accessibility. Proper contrast ensures content is readable for everyone, including the 285 million people worldwide with visual impairments and the 300 million with color vision deficiencies.

WCAG Contrast Requirements

  • WCAG 2.1 Level AAA (Normal text): Requires a contrast ratio of at least 7:1 for normal text, providing exceptional readability for all users
  • WCAG 2.1 Level AA (Normal text): Requires a contrast ratio of at least 4.5:1 for normal text, meeting legal requirements in many jurisdictions
  • WCAG 2.1 Level AAA (Large text): Requires a contrast ratio of at least 4.5:1 for large text, ensuring optimal visibility
  • WCAG 2.1 Level AA (Large text): Requires a contrast ratio of at least 3:1 for large text, meeting baseline accessibility standards
  • UI Components: Need a minimum contrast ratio of 3:1 against adjacent colors to ensure interactive elements are perceivable

What Our Grades Mean

  • A+ (7:1 or higher): Exceptional contrast that exceeds all WCAG requirements, suitable for all text and UI elements
  • A (4.5:1 to 7:1): Strong contrast that meets WCAG AA requirements for all text sizes and AAA for large text
  • B (3:1 to 4.5:1): Moderate contrast, suitable only for large text (AA) and UI components
  • C (2:1 to 3:1): Poor contrast that fails WCAG requirements for text but may be acceptable for decorative elements
  • F (less than 2:1): Insufficient contrast that creates significant accessibility barriers and should be avoided

What is "Large Text"?

According to WCAG standards, "large text" is defined as text that is:

  • Bold text at least 14 points (typically 18.66px) OR
  • Regular text at least 18 points (typically 24px)

Why Contrast Matters

Good color contrast doesn't just benefit those with permanent vision impairments—it improves readability for:

  • Users with temporary vision conditions (eye strain, dilated pupils)
  • People using screens in bright sunlight or high-glare environments
  • Older adults experiencing age-related vision changes
  • Anyone using devices with low brightness settings to conserve battery

Frequently Asked Questions

What is color contrast ratio?

+

Color contrast ratio measures the difference in luminance (perceived brightness) between two colors. The ratio ranges from 1:1 (no contrast, same color) to 21:1 (maximum contrast, black on white). Higher ratios indicate better visibility and readability, especially for users with visual impairments.

The ratio is calculated using the formula: (L1 + 0.05) / (L2 + 0.05), where L1 is the relative luminance of the lighter color and L2 is that of the darker color.

Why is color contrast important for accessibility?

+

Sufficient color contrast ensures that text and interactive elements are perceivable by all users, including those with low vision or color vision deficiencies (like color blindness). Poor contrast can make content difficult or impossible to read for many users.

Consider these statistics:

  • 1 in 12 men and 1 in 200 women have some form of color vision deficiency
  • Over 2 billion people worldwide need vision correction
  • By 2050, it's estimated that half the world's population will be myopic

Beyond accessibility compliance, good contrast improves user experience for everyone, especially in challenging viewing conditions like bright sunlight.

How is contrast ratio calculated?

+

The contrast ratio is calculated using the relative luminance of the two colors:

  1. Convert RGB colors to their relative luminance values (L)
  2. Determine which color has higher luminance (lighter color)
  3. Apply the formula: (L1 + 0.05) / (L2 + 0.05), where L1 is the luminance of the lighter color and L2 is the luminance of the darker color

Luminance conversion accounts for how the human eye perceives different colors. Green appears brighter than red or blue at the same intensity, so the formula weighs green more heavily in the calculation.

The result is always ≥ 1, with higher values indicating better contrast. Pure black on pure white yields the maximum ratio of 21:1.

What does "AA" and "AAA" compliance mean?

+

WCAG (Web Content Accessibility Guidelines) defines three conformance levels:

  • Level A: The minimum level of accessibility compliance
  • Level AA: The target standard for most websites and digital content. Many laws and regulations worldwide reference Level AA as the required standard
  • Level AAA: The highest level of accessibility, providing optimal access for all users

For contrast specifically:

  • AA compliance requires 4.5:1 contrast for normal text and 3:1 for large text
  • AAA compliance requires 7:1 contrast for normal text and 4.5:1 for large text

Many organizations aim for AA compliance as a minimum standard while striving for AAA wherever possible.

Can I use this tool for my website design?

+

Absolutely! This tool is designed to help web designers and developers create accessible color combinations. You can:

  • Test existing color schemes from your website
  • Experiment with new color combinations
  • Export accessible color variables as CSS or SCSS
  • Verify compliance with WCAG 2.1 standards

For professional web projects, we recommend testing with multiple accessibility tools and conducting user testing with people who have various visual impairments.

How do I use the color picker?

+

Our color picker offers several ways to select colors:

  • Direct input: Enter a hexadecimal color code (e.g., #3498DB) in the input fields
  • Preset swatches: Click any color swatch for quick selection of common colors
  • Hue slider: Drag the slider to select a base color
  • Saturation-value picker: Click within the color field to fine-tune saturation and brightness

After selecting both foreground and background colors, the contrast ratio and compliance information update automatically. Use the "Swap" button to quickly reverse the colors if needed.

Are there other accessibility considerations besides contrast?

+

Yes! While color contrast is crucial, comprehensive web accessibility includes many other factors:

  • Don't rely on color alone to convey information
  • Provide text alternatives for non-text content
  • Ensure keyboard accessibility for all interactive elements
  • Make content readable and understandable
  • Design interfaces that are predictable and consistent
  • Help users avoid and correct mistakes

For comprehensive accessibility, refer to the complete WCAG 2.1 guidelines and consider conducting accessibility audits with specialized tools.