Color Contrast in Web Design: The WCAG Rules That Actually Matter
Grey text on white backgrounds looks clean in Figma. In the real world, it fails accessibility standards and millions of users can't read it. Here's what to do instead.
Light gray text on white. #6b7280 on #f9fafb. It looks minimal and modern in every design system. It also fails WCAG AA contrast requirements by a significant margin. I see this constantly in design reviews.
The Contrast Ratio
Contrast ratio is a mathematical measure of the luminance difference between two colors. 1:1 is no contrast (same color). 21:1 is maximum contrast (pure black on pure white). WCAG AA requires 4.5:1 for normal body text.
Some common failures:
- #6b7280 on white: ~4.0:1 — fails AA for body text
- #9ca3af on white: ~2.5:1 — fails by a lot (placeholder text commonly this color)
- #d1d5db on white: ~1.5:1 — nearly invisible to low-vision users
Why This Matters Practically
About 1 in 12 men and 1 in 200 women have some form of color vision deficiency. Older users experience reduced contrast sensitivity. Users in bright outdoor lighting see reduced screen contrast. Anyone in these groups — a significant portion of your users — struggles with insufficient contrast even if it looks fine to you in a dark office.
Legal exposure is also real. ADA lawsuits over accessibility failures have been increasing. A publicly accessible website with contrast failures is a documented compliance problem.
Achieving Good Contrast Without Sacrificing Design
The trick is being intentional about where you reduce contrast. Body text, navigation, calls to action, form labels — these need 4.5:1. Decorative elements, disabled states, and placeholder text (which WCAG explicitly excludes from the requirement) can use lower contrast.
Specific fixes:
- Replace #6b7280 body text with #4b5563 — achieves 5.4:1 on white, passes AA
- Replace light gray placeholder text (#9ca3af) with #6b7280 — achieves 4.0:1 (still fails for body text but is an improvement)
- For large text (18px+), 3:1 ratio suffices — this gives you more design flexibility
Frequently Asked Questions
What is the WCAG color contrast requirement?+
How do I check color contrast ratio?+
Does color contrast apply to icons and graphics?+
Can you have too much contrast?+
🔧 Free Tools Used in This Guide
FreeToolKit Team
FreeToolKit Team
We build free browser-based tools and write practical guides that skip the fluff.
Tags: