WCAG Color Contrast Checker

Test foreground and background color combinations for WCAG 2.1 accessibility compliance. See AA and AAA pass/fail results, preview text at multiple sizes, simulate color blindness, and get instant fix suggestions.

RGB: 51, 51, 51HSL: 0, 0%, 20%
RGB: 255, 255, 255HSL: 0, 0%, 100%

Accepts HEX (#333), RGB (rgb(51,51,51)), or HSL (hsl(0,0%,20%))

Contrast Ratio
12.63:1
Excellent
1:13:14.5:17:121:1

Live Preview

Normal text (16px) β€” The quick brown fox jumps over the lazy dog. This is how your body text will look to users on your website.

Large text (24px bold) β€” Heading Preview

Icon samples
Link text sample

WCAG Compliance

LevelNormal TextLarge TextUI Components
AA (minimum)βœ“ Pass
4.5:1
βœ“ Pass
3:1
βœ“ Pass
3:1
AAA (enhanced)βœ“ Pass
7:1
βœ“ Pass
4.5:1
N/A

Color Blindness Preview

Approximately 1 in 12 men and 1 in 200 women have some form of color vision deficiency. Here is how your color combination appears under common types.

Sample Aa

The quick fox

Deuteranopia

Red-green (most common)

12.6:1

Sample Aa

The quick fox

Protanopia

Red-green

12.6:1

Sample Aa

The quick fox

Tritanopia

Blue-yellow

12.6:1

Pro Tips

  • Test all states: Check hover, focus, active, and disabled states. A color that passes in its default state may fail in hover.
  • Don't rely on color alone: WCAG 1.4.1 says color should not be the only way to convey information. Use icons, underlines, or patterns alongside color.
  • Placeholder text matters: Form input placeholders are often light gray. Test them against your input backgrounds.
  • Large text threshold: β€œLarge text” means 18px (24px CSS) regular weight or 14px (18.66px CSS) bold. Larger text gets a lower contrast requirement because it's inherently easier to read.
  • Test with real content: Don't just test solid colors. Your actual content may have gradients, images, or semi-transparent overlays that reduce effective contrast.

100% Private

All calculations happen in your browser. No colors or data are sent to any server.

Frequently Asked Questions

What contrast ratio do I need for WCAG compliance?

WCAG Level AA requires 4.5:1 for normal text and 3:1 for large text (18pt or 14pt bold) and UI components. Level AAA requires 7:1 for normal text and 4.5:1 for large text.

How do I check if my website meets WCAG contrast standards?

Enter your text (foreground) color and background color in this tool. It will instantly calculate the contrast ratio and show whether you pass or fail AA and AAA requirements for normal text, large text, and UI components.

What is considered 'large text' in WCAG?

Large text is defined as 18pt (24px) or larger at regular weight, or 14pt (approximately 18.67px) or larger at bold weight. Large text has a lower contrast requirement because it is inherently easier to read.

Is WCAG contrast compliance legally required?

In many jurisdictions, yes. The ADA in the US, the Equality Act in the UK, and EN 301 549 in the EU all reference WCAG guidelines. Many organizations have faced lawsuits for failing to meet accessibility standards.

Can I test colors for color-blind users?

Yes. This tool includes color blindness simulations for Deuteranopia, Protanopia, and Tritanopia. You can see how your color combination appears to users with these conditions and verify that the contrast ratio remains adequate.

What should I do if my colors fail?

The tool suggests accessible alternative foreground colors that maintain a similar hue but meet the 4.5:1 AA threshold. Click any suggestion to apply it. You can also adjust lightness manually while watching the ratio update in real time.

Related Tools

Last updated: March 2026