Skip to content

WCAG Contrast Checker

Free

Test color contrast ratios against WCAG 2.1 AA and AAA requirements. Instant pass/fail for text and UI components. Free, browser-based.

wcag color contrast testwcag 2.1 contrast ratioaccessibility contrast checker
All Color Tools

Settings guide

WCAG 2.1 contrast requirements:

LevelNormal textLarge textUI components
AA (minimum)4.5:13:13:1
AAA (enhanced)7:14.5:1Not specified

What counts as "large text":

  • ·18px (24px CSS) or larger at normal weight
  • ·14px (18.67px CSS) or larger at bold weight (700+)
  • ·Decorative text and text in logos is exempt

Common failure patterns:

Color pairRatioStatus
#767676 on #FFFFFF4.54:1AA Pass (barely)
#999999 on #FFFFFF2.85:1Fail
#0000FF on #FFFFFF8.59:1AAA Pass
#00AA00 on #FFFFFF3.78:1Fail (common mistake)
#767676 on #7676761:1Fail (obviously)

Format comparison

WCAG 2.1 vs WCAG 3.0 (APCA): WCAG 3.0 introduces APCA (Advanced Perceptual Contrast Algorithm), which is more nuanced than the current ratio formula. APCA accounts for font size, weight, and the direction of contrast (light on dark vs dark on light). As of 2025, WCAG 2.1 remains the legal standard — WCAG 3.0 is not yet finalized.

Contrast ratio vs perceived contrast: The WCAG formula is based on relative luminance, not perceptual brightness. Some color combinations (blue text on white) pass mathematically but feel low-contrast to some users. When in doubt, test with real users and aim higher than the minimum ratio.

Component contrast (3:1): WCAG 2.1 Success Criterion 1.4.11 requires a 3:1 ratio for the visual boundary of UI components (button outlines, text field borders, checkboxes) against adjacent colors. This is often overlooked — buttons with a subtle border on white can fail even if the button text passes.

How it works

1

Set foreground

Enter the text or element color — the color you're reading or seeing.

2

Set background

Enter the background color behind the text or element.

3

Read the result

See the contrast ratio (e.g., 4.56:1), and pass/fail status for AA and AAA at both normal and large text sizes.

About this format

WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios for text and interactive elements to ensure they are readable by users with low vision or color vision deficiencies. The standard is law-adjacent in many jurisdictions — failing WCAG contrast requirements can expose organizations to accessibility lawsuits and government procurement rejections.

WCAG 2.1 specifies three levels. Level A is the minimum. Level AA is the target for most commercial websites and is required by government accessibility standards in the US (Section 508), UK (PSBAR), EU (EN 301 549), and Australia (WCAG 2.1 AA). Level AAA is the gold standard — desirable but not always achievable for all text due to design constraints.

The contrast ratio is calculated from the relative luminance of the two colors — a physics-based measure of how much light each color reflects. The ratio expresses how far apart the two luminances are, from 1:1 (no contrast) to 21:1 (black on white, the maximum possible contrast).

Frequently asked questions

What contrast ratio do I need to pass WCAG AA?+
Normal text requires 4.5:1. Large text (18px+ or 14px+ bold) requires 3:1. UI components and graphical elements require 3:1 against adjacent colors. The 4.5:1 threshold for normal text is the one most frequently tested and most frequently failed.
Does WCAG apply to placeholder text in form fields?+
Yes. Placeholder text must meet WCAG 1.4.3 contrast requirements just like regular text. It also must not be the only visual indicator of the field's purpose (it disappears on input). Many forms fail both requirements — low-contrast gray placeholders that vanish when users start typing.
Is WCAG 2.1 legally required?+
It depends on jurisdiction and organization type. In the US, Section 508 requires WCAG 2.1 AA compliance for federal agencies and their contractors. The ADA has been interpreted to require web accessibility for public accommodations. In the EU, EN 301 549 mandates WCAG 2.1 AA for public sector websites. Check the specific regulations for your jurisdiction.
Does WCAG contrast apply to decorative images?+
No. Pure decorative images, icons used purely for decoration (not conveying information), and text in logos are exempt from WCAG contrast requirements. However, if an icon conveys meaning (a close button, a status indicator), it must meet the 3:1 UI component ratio.
How do I fix a color pair that fails WCAG?+
The fastest fix is to darken the foreground color or lighten the background (or the reverse for dark themes). Converting the foreground to HSL and decreasing L (lightness) by 10–20% often achieves compliance without drastically changing the design. Use the shade scale generator to find a darker variant of your color.

Related tools and guides