👁️ WCAG Compliant

Color Contrast Checker

Check the contrast ratio between text and background colors instantly. Ensure your designs meet WCAG 2.1 AA and AAA standards for perfect readability.

Step 1: Pick Colors
Foreground (Text) Color
Background Color
Step 2: Contrast Results
5.17 : 1Contrast Ratio
Normal Text (WCAG AA)Pass
Requires a contrast ratio of at least 4.5:1 for body and paragraph text.
Large Text (WCAG AA)Pass
Requires a contrast ratio of at least 3.0:1 for text that is 18pt or 14pt bold.
Normal Text (WCAG AAA)Fail
Requires a contrast ratio of at least 7.0:1. The gold standard for accessibility.
UI Components & GraphicsPass
Requires 3.0:1 for icons, buttons, input borders, and other graphical identifiers.

Accessibility matters.

This is a live preview of how your text will look to users on this exact background. Proper color contrast helps people with visual impairments, color blindness, and even average users reading their screens in harsh sunlight.

Why Color Contrast Matters for Accessible Web Design

Providing sufficient color contrast is not just a best practice—it is a critical requirement under the Web Content Accessibility Guidelines (WCAG) and often legally mandated by the Americans with Disabilities Act (ADA) for business websites.

Understanding the Contrast Ratio

Contrast ratios range from 1:1 (no contrast, e.g., white on white) to 21:1 (maximum contrast, e.g., black on white). Checking this ratio ensures that your written content can be clearly distinguished from its background by all demographics, including the aging population and the estimated 8% of males with color vision deficiency.

WCAG 2.1 Guidelines Explained

The W3C defines three levels of conformance. For most public-facing websites, reaching Level AA is the standard requirement.

  • 1.4.3 Contrast (Minimum) - Level AA: The visual presentation of text and images of text has a contrast ratio of at least 4.5:1. Large-scale text (18pt+) requires 3:1.
  • 1.4.6 Contrast (Enhanced) - Level AAA: This is the higher "gold standard." It requires a contrast ratio of 7:1 for normal text and 4.5:1 for large-scale text.
  • 1.4.11 Non-text Contrast - Level AA: This covers UI components like buttons, input borders, and checkboxes, requiring a ratio of at least 3:1 against adjacent colors.

Professional Best Practices for Developers

Never Use Color Alone

Don't rely solely on color to convey information (e.g., a red border for an error). Always include text or icons as secondary indicators.

Check State Changes

Ensure your :hover, :focus, and :active states also meet contrast requirements, not just the base state.

Transparency Awareness

If using RGBA or opacity, ensure the "flattered" result against the background still passes the 4.5:1 threshold.

Use CSS Variables

Store your accessible color palette in CSS variables. This makes it easy to audit and update your design system globally.

How to Fix Poor Contrast?

If your colors fail the check in our tool, use the color swatch pickers to rapidly adjust the lightness or darkness. Lightening the lighter color or darkening the darker color will instantly improve the ratio coefficient. For designers, consider using semi-bold fonts for problematic color pairs to improve perceived legibility.

Frequently Asked Questions

Is this checker fully WCAG 2.1 compliant?

Yes. Our algorithm uses the precise relative luminance mathematical formula specified by the W3C Web Content Accessibility Guidelines (WCAG 2.1) to compute scores. You can read the official WCAG 2.1 documentation here.

What is considered "Large Text"?

According to WCAG, large text is defined as text that is 18pt (usually 24px) or larger, OR text that is 14pt (usually 18.66px) and bold.

What about buttons and icons?

User interface components, input boundaries, icons, and non-text graphics must meet a minimum contrast ratio of 3.0:1 against their adjacent colors to pass the WCAG AA standard.

Can I check Hex, RGB, and HSL?

Currently, the text input accepts Hexadecimal codes (e.g., #FFFFFF), but clicking the circular color swatch will open your systems native color picker, which natively supports RGB and HSL inputs on most devices.