{ WCAG Contrast Checker }

// check contrast ratio against wcag 2.1 aa and aaa standards

Check color contrast ratio against WCAG 2.1 AA and AAA standards instantly. Free browser-based tool for designers and developers.

QUICK PRESETS
โ™ฟ

Ready to check

Pick colors and click Check Contrast

HOW TO USE

  1. 01
    Pick Colors

    Use the color picker or type a hex code for both foreground and background colors.

  2. 02
    Select Text Size

    Choose Normal or Large text โ€” WCAG requirements differ based on text size.

  3. 03
    Check & Fix

    Click Check Contrast to see your ratio and WCAG AA/AAA pass/fail results.

FEATURES

WCAG 2.1 AA WCAG 2.1 AAA Live Preview Color Picker Quick Presets Instant Results

USE CASES

  • โ™ฟ Checking design accessibility before launch
  • ๐ŸŽจ Validating brand color combinations
  • ๐Ÿ“ฑ Ensuring mobile readability standards
  • ๐Ÿ” Auditing existing websites for compliance
  • ๐Ÿ“ Writing accessible UI component docs

WHAT IS THIS?

The WCAG Contrast Checker calculates the contrast ratio between two colors and checks whether it meets WCAG 2.1 accessibility guidelines at the AA and AAA conformance levels. A higher ratio means better readability for all users, including those with low vision.

RELATED TOOLS

FREQUENTLY ASKED QUESTIONS

What is WCAG and why does contrast matter?

WCAG (Web Content Accessibility Guidelines) is an international standard for web accessibility. Adequate color contrast ensures that text is readable by people with low vision or color blindness. Poor contrast is one of the most common accessibility failures on the web.

What is the difference between AA and AAA?

AA is the minimum acceptable conformance level required by most accessibility laws and standards (including ADA, Section 508, and EN 301 549). AAA is the enhanced level offering the best readability. For normal text, AA requires 4.5:1 and AAA requires 7:1 contrast ratio.

What counts as "large text" in WCAG?

Large text is defined as text that is at least 18pt (24px) or bold text at least 14pt (approximately 18.67px). Large text has lower contrast requirements because it is inherently easier to read at smaller ratios.

Does this tool support opacity or transparency?

This tool works with solid hex colors only. For semi-transparent colors, you should first calculate the resulting blended color against its background, then enter that combined value for an accurate contrast check.

What contrast ratio is required for UI components?

WCAG 2.1 Success Criterion 1.4.11 requires a minimum 3:1 contrast ratio for UI components and graphical objects (like icons and form borders) against adjacent colors. This is separate from text contrast requirements.

Is 4.5:1 contrast always enough?

For WCAG AA compliance, 4.5:1 is sufficient for normal text. However, aiming for higher ratios (7:1 or above) improves readability for a wider range of users, particularly those with moderate low vision who do not use assistive technology.

Can I use this tool for print design?

While WCAG is designed for digital interfaces, the underlying contrast principles apply to print as well. High contrast in print materials benefits readers with visual impairments, making this checker useful for accessible document and brochure design too.

What if my colors fail WCAG? How do I fix it?

If your colors fail, try darkening the foreground color or lightening the background (or vice versa) until the ratio meets the required threshold. You can also try using the Tint & Shade Generator to find compliant variations of your brand colors.

What is a WCAG Contrast Checker?

A WCAG Contrast Checker is a tool that measures the visual contrast between two colors โ€” typically a text color and its background โ€” and evaluates whether the ratio meets the Web Content Accessibility Guidelines (WCAG) defined by the World Wide Web Consortium (W3C). This type of tool is essential for web designers, developers, and content creators who want to ensure their work is accessible to everyone, including people with low vision or color blindness.

Color contrast is one of the most impactful โ€” and most frequently overlooked โ€” aspects of web accessibility. Even beautifully designed websites can be nearly unusable for a significant portion of users if text doesn't stand out clearly from its background. The WCAG Contrast Checker removes the guesswork by giving you a precise numerical ratio and a clear pass/fail result for the relevant accessibility level.

Understanding the WCAG 2.1 Contrast Requirements

WCAG 2.1 defines contrast requirements under Success Criteria 1.4.3 (Contrast โ€“ Minimum) and 1.4.6 (Contrast โ€“ Enhanced). These criteria are organized into two levels of conformance:

"Normal text" refers to body copy, labels, and other standard-size text. "Large text" is defined as text that is at least 18 points (24px) in regular weight, or at least 14 points (approximately 18.67px) in bold. These different thresholds exist because larger or bolder text is inherently easier to read, so it can pass with a lower contrast ratio.

How the Contrast Ratio Is Calculated

The contrast ratio is derived from the relative luminance of each color. Relative luminance is a measure of the perceived brightness of a color, taking into account the non-linear way human vision processes light. The formula is defined by the W3C as follows:

The result is expressed as a ratio relative to 1 (e.g., 4.5:1 or 7:1). The maximum possible ratio is 21:1, which is pure black on white or pure white on black. A ratio of 1:1 means both colors are identical with no contrast at all.

Why Color Contrast Matters for Accessibility

Approximately 8% of men and 0.5% of women worldwide have some form of color vision deficiency. Additionally, around 246 million people globally have moderate to severe visual impairment. Poor contrast doesn't just affect these groups โ€” it affects anyone reading on a glare-affected screen, in bright sunlight, on a low-quality display, or while fatigued. Good contrast is not a niche concern; it improves the reading experience for everyone.

From a legal standpoint, many countries and jurisdictions have adopted WCAG as the technical standard for web accessibility compliance. In the United States, Section 508 of the Rehabilitation Act and the Americans with Disabilities Act (ADA) both reference WCAG. The European Union's EN 301 549 standard and the UK's accessibility regulations similarly align with WCAG 2.1. Non-compliance can expose organizations to legal risk, as accessibility lawsuits have increased significantly in recent years.

Who Should Use a WCAG Contrast Checker?

This tool is useful for a wide range of professionals and creators:

Tips for Improving Color Contrast

If your color pair fails the WCAG contrast check, here are some practical strategies to improve the ratio without abandoning your design language:

WCAG Contrast Beyond Text

While text contrast is the most commonly discussed requirement, WCAG 2.1 also addresses non-text contrast under Success Criterion 1.4.11. This criterion requires a minimum 3:1 contrast ratio for user interface components (like buttons, form inputs, and checkboxes) and meaningful graphical elements (like charts, icons, and infographics) against their adjacent colors. This ensures that interactive elements are identifiable and graphical information is perceivable without relying solely on color.

Our WCAG Contrast Checker focuses on the color ratio calculation, which is the foundation for both text and non-text contrast checks. You can use it to evaluate any two adjacent colors, whether they're for text, icons, or UI components.

โ˜•