WCAG Color Contrast Ratios: The Numbers Developers Need to Know

1 6 110
calendar_todayschedule1 min read

Color contrast is one of the most common accessibility failures. The fix is simple once you know the thresholds.

The Thresholds

| Use Case | Level AA | Level AAA |

|---|---|---|

| Normal body text | 4.5:1 | 7:1 |

| Large text (18px+ or 14px+ bold) | 3:1 | 4.5:1 |

| UI components (borders, icons) | 3:1 | — |

| Decorative elements | Exempt | Exempt |

Level AA is legally required in most jurisdictions (ADA, EN 301 549, Equality Act). AAA is best practice.

Common Failures

  • Light grey #999 on white #fff → 2.85:1 → Fails (very common mistake)
  • Fix: darken to #767676 for 4.54:1 (AA pass)
  • White on medium blue #4285f4 → 3.07:1 → Fails for body text
  • Fix: use darker blue #1558d6 → 5.37:1

Testing Tools

  • Figma: Select text layer → right panel shows contrast ratio
  • Chrome DevTools: Accessibility panel → contrast indicator
  • Browser tools: axe DevTools, WAVE extensions

For checking any specific hex or RGB pair against WCAG standards, a free contrast checker gives the exact ratio and AA/AAA pass/fail verdict instantly.

Key Rule

Always test dark mode separately — a colour combination that passes in light mode can fail in dark mode. Design to AA as a baseline, aim for AAA on body text.

Originally published at https://snappytools.app/color-contrast-checker/

🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelskiverified - Mar 19

TypeScript Complexity Has Finally Reached the Point of Total Absurdity

Karol Modelskiverified - Apr 23

Sovereign Intelligence: The Complete 25,000 Word Blueprint (Download)

Pocket Portfolio - Apr 1

What Is SARIF and How Does It Help Security Tools Work Together?

Ganesh Kumar - Jul 4

Dog CT Scan Cost: What Pet Parents Need to Know

Huifer - Feb 6
chevron_left
2.4k Points117 Badges
101Posts
0Comments
SnappyTools builds free, fast, browser-based tools for developers, writers, and designers. No signup... Show more

Related Jobs

View all jobs →

Commenters (This Week)

4 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!