All tools
Design tools

Contrast Checker (WCAG)

Check WCAG 2.1 AA and AAA contrast ratios between any two colors — instant pass/fail for normal text, large text and UI components.

WCAG 2.1 AA WCAG AAA Normal text Large text UI components HEX / RGB / HSL
Get started free Sign in

Free · No credit card · 50 credits/day

WCAG contrast requirements at a glance

Element type AA ratio AAA ratio Notes
Normal text 4.5:1 7:1 Under 18pt (24px) regular or 14pt (18.67px) bold
Large text 3:1 4.5:1 18pt+ regular or 14pt+ bold
UI components 3:1 Borders of inputs, focus indicators, icons
Graphical objects 3:1 Charts, icons, infographics conveying information
Disabled elements Exempt Exempt Inactive/disabled controls are excluded
Decorative elements Exempt Exempt Pure decoration with no informational content

Frequently asked questions

What contrast ratio is required for WCAG AA compliance?

WCAG 2.1 AA requires: normal text → 4.5:1, large text (18pt+ or 14pt+ bold) → 3:1, UI components and graphical objects → 3:1. Level AAA requires 7:1 for normal text and 4.5:1 for large text. Most public websites are legally required to meet AA.

Does white text on a colored button pass WCAG?

It depends on the button color. White on medium blue (#3b82f6) gives 3.3:1 — AA pass for large text only. White on dark blue (#1d4ed8) gives 5.9:1 — AA pass for normal text. Always check your specific brand color. Dark text on light backgrounds generally gives better ratios.

What is the difference between WCAG AA and AAA?

AA (4.5:1) is the standard conformance level required by most accessibility laws. AAA (7:1) is the enhanced level for users with low vision. AAA is very difficult to achieve across a full brand palette and is generally not legally required. Aim for AA on all text; AAA where feasible.

Do placeholder text and disabled elements need to pass contrast?

Disabled UI components are explicitly exempt. Placeholder text is a grey area — WCAG 1.4.3 doesn't technically require it, but WCAG 2.2 guidance recommends treating it as text. For usability, always ensure placeholder text is legible.

Related design tools

More tools for accessible design.

Color Palette Generator

Generate harmonious palettes then check all combinations for accessibility.

Color Blindness Simulator

See how users with color blindness perceive your color choices.

Tailwind Color Finder

Find Tailwind colors that meet your contrast requirements.

Design accessible interfaces from day one

Free account. 50 credits per day. Access to 75+ tools instantly.

Create free account →