WCAG Color Contrast Ratios: The Numbers Developers Need to Know

posted 1 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/

1.5k Points40 Badges3 37
62Posts
0Comments
SnappyTools builds free, fast, browser-based tools for developers, writers, and designers. No signup required, no data uploaded, no nonsense — just clean tools that work instantly in your browser. We cover the full developer workflow: JSON formatting, Base64 encoding, URL encoding, HTML entity encoding, CSS and HTML minification, Markdown conversion, UUID generation, and more. Plus writing tools like readability checkers, word counters, and keyword density analysis. New tools added every week b...
Build your own developer journey
Track progress. Share learning. Stay consistent.
🔥 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

Dog CT Scan Cost: What Pet Parents Need to Know

Huifer - Feb 6

Just completed another large-scale WordPress migration — and the client left this

saqib_devmorph - Apr 7
chevron_left

Related Jobs

View all jobs →

Commenters (This Week)

3 comments
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!