← All Articles

Accessible Color Contrast Guide: Meeting WCAG Standards

March 2026 · 6 min read

Approximately 300 million people worldwide have some form of color vision deficiency (commonly known as color blindness), and declining visual acuity is something everyone may face with age. Designing a website that is friendly to all users starts with color contrast. This article walks you through WCAG color contrast standards and how to implement them in your designs.

Why Color Contrast Matters

Color contrast directly affects text readability. When there is insufficient contrast between foreground (text) and background colors, the following users will struggle:

Even if your target audience does not specifically include these groups, good contrast improves the reading experience for everyone.

WCAG Contrast Standards

The Web Content Accessibility Guidelines (WCAG) 2.1 define two levels of color contrast standards:

LevelNormal Text (below 18px)Large Text (18px+ or 14px bold)Non-Text Elements
AA (minimum)4.5:13:13:1
AAA (enhanced)7:14.5:1

Recommendation: Most websites should aim for at least AA compliance. If your website has legal compliance requirements (e.g., government sites, educational institutions), you may need to meet AAA standards.

How Contrast Ratio Is Calculated

The WCAG contrast ratio formula is based on the relative luminance of two colors. The calculation steps are:

  1. Convert RGB values to linear sRGB values (remove gamma correction)
  2. Calculate relative luminance: L = 0.2126R + 0.7152G + 0.0722B
  3. Contrast ratio = (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color

The contrast ratio ranges from 1:1 (identical colors) to 21:1 (black on white).

Common Color Combination Contrast Ratios

ForegroundBackgroundRatioAA Level
#000000 (black)#FFFFFF (white)21:1Pass
#333333 (dark gray)#FFFFFF (white)12.6:1Pass
#767676 (gray)#FFFFFF (white)4.5:1Barely pass
#999999 (light gray)#FFFFFF (white)2.8:1Fail
#10b981 (green)#FFFFFF (white)3.0:1Large text only

Types of Color Vision Deficiency

When designing accessible palettes, it helps to understand the common types of color vision deficiency:

Key Principle: Never rely on color alone to convey information. Supplement with icons, text labels, underlines, or patterns to ensure content is understandable even when colors cannot be distinguished.

Practical Accessible Color Tips

1. Use Contrast Checking Tools

Make it a habit to check contrast ratios when choosing colors. Recommended tools include WebAIM Contrast Checker, Chrome DevTools' built-in contrast display, and the Stark plugin for Figma.

2. Build an Accessible Color System

In your design system, mark each color for whether it meets AA standards on white and dark backgrounds. Your primary color may need two versions: one that passes on light backgrounds and one for dark backgrounds.

3. Don't Rely Solely on Color for State

Form validation errors should not use red alone — add error icons and text descriptions. Success/failure states should include text labels, not just green/red indicators.

4. Test in Grayscale

Convert your design to grayscale to check if the information hierarchy is still clear. If differences disappear in grayscale, you are over-relying on color to differentiate elements.

5. Dark Mode Needs Contrast Too

Dark mode is not just about swapping the background to black. Pure white text on a pure black background (21:1 contrast) can actually cause eye strain. Consider using dark gray backgrounds (e.g., #121212) with light gray text (e.g., #e0e0e0).

Try the Color Converter Tool →

Conclusion

Accessible design is not an extra burden — it is a fundamental requirement of good design. Proper color contrast helps not only users with visual impairments but improves the experience for everyone. Start incorporating contrast checks into your design workflow today, and make your work more inclusive for all users.

References

  1. W3C. "Web Content Accessibility Guidelines (WCAG) 2.1 — Success Criterion 1.4.3 Contrast (Minimum)." W3C Recommendation, 2018. https://www.w3.org/TR/WCAG21/#contrast-minimum
  2. W3C Web Accessibility Initiative (WAI). "Understanding SC 1.4.3: Contrast (Minimum)." Understanding WCAG 2.1, 2018. https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html
  3. WebAIM. "Contrast Checker." WebAIM, 2024. https://webaim.org/resources/contrastchecker/
  4. Colour Blind Awareness. "Colour Blindness." Colour Blind Awareness Organization, 2024. https://www.colourblindawareness.org/colour-blindness/