Web Color Accessibility: WCAG 2.2 Guide

Make your website usable for everyone. This guide covers contrast ratios, color blindness, and WCAG 2.2 standards so you can design for accessibility.

Why Color Accessibility Matters

1.3 Billion

People worldwide live with disabilities. This is 16% of the global population.

Color accessibility means your content works for people with visual impairments, color vision deficiencies, or temporary vision issues. It also helps people using screens in bright sunlight or on small mobile devices.

  • Legal Requirements:ADA, Section 508, and international laws require accessible digital content
  • Business Impact:Inaccessible websites exclude potential customers and limit your market reach
  • Better UX for Everyone:Accessible design makes websites easier to use for everyone

WCAG 2.2 Contrast Requirements

The Web Content Accessibility Guidelines (WCAG) set minimum contrast ratios for text readability. The current standards are:

Level AA

WCAG 2.2

Standard compliance level for most websites

Normal Text: 4.5:1
Large Text (18pt+): 3:1
UI Components: 3:1

Level AAA

WCAG 2.2

Highest compliance level for enhanced accessibility

Normal Text: 7:1
Large Text (18pt+): 4.5:1
UI Components: 3:1

Text Size Definitions

  • Normal Text: Smaller than 18pt (24px) or 14pt bold (19px bold)
  • Large Text: 18pt (24px) or larger, or 14pt (19px) bold or larger

WCAG Compliant Color Combinations

These color combinations pass WCAG AA standards and most pass AAA. You can use them as starting points for your designs:

Sample Text
The quick brown fox jumps over the lazy dog
Foreground
#000000
Background
#FFFFFF
Ratio
21:1
Pass
AAAAA
Use For
Body text, documentation
Sample Text
The quick brown fox jumps over the lazy dog
Foreground
#1D4ED8
Background
#FFFFFF
Ratio
8.2:1
Pass
AAAAA
Use For
Headings, links
Sample Text
The quick brown fox jumps over the lazy dog
Foreground
#1F2937
Background
#F3F4F6
Ratio
14.1:1
Pass
AAAAA
Use For
Secondary text
Sample Text
The quick brown fox jumps over the lazy dog
Foreground
#FFFFFF
Background
#1D4ED8
Ratio
8.2:1
Pass
AAAAA
Use For
Buttons, call-to-actions
Sample Text
The quick brown fox jumps over the lazy dog
Foreground
#FFFFFF
Background
#059669
Ratio
7.5:1
Pass
AAAAA
Use For
Success messages
Sample Text
The quick brown fox jumps over the lazy dog
Foreground
#FFFFFF
Background
#DC2626
Ratio
6.3:1
Pass
AAAAA
Use For
Error alerts (large text)

Color Vision Deficiencies

300 Million

People worldwide have some form of color vision deficiency (color blindness). Red-green color blindness is the most common type and affects 8% of men with Northern European ancestry.

Protanopia

Red-Blind

Red appears as black/yellow

DESIGN TIP

Avoid red/green combinations, use blue/orange instead

Deuteranopia

Green-Blind

Green appears as beige/yellow

DESIGN TIP

Most common form, use patterns + color

Tritanopia

Blue-Blind

Blue appears as greenish/yellow

DESIGN TIP

Avoid blue/yellow combinations

Achromatopsia

Monochromacy

Total color blindness (grayscale)

DESIGN TIP

Ensure contrast works in grayscale

Accessibility Best Practices

1. Never Use Color Alone

Always pair color with another visual indicator. Use icons, patterns, underlines, or text labels so information is not conveyed only through color.

Example:
Required field *Complete ✓

2. Test in Grayscale

View your design in grayscale to check that information is still understandable without color.

3. Use High Contrast for Interactive Elements

Buttons, links, and form inputs need strong contrast so users can identify them easily.

4. Provide Sufficient Color Contrast

Aim for AAA compliance (7:1 for normal text) when you can. Higher contrast helps everyone, especially when viewing screens in bright light or on small mobile devices.

5. Avoid Problematic Color Pairs

Avoid red/green, green/brown, blue/purple, and light yellow combinations. Color blind users often have trouble distinguishing these pairs.

How to Test Color Accessibility

Automated Contrast Checkers

Use tools like WebAIM Contrast Checker, Contrast Ratio, or browser extensions to check that color combinations meet WCAG standards.

Color Blindness Simulators

Preview your designs through simulators like Toptal Color Filter or Chrome extensions to see how color blind users will see your interface.

Accessibility Auditors

Run full accessibility audits with axe DevTools, Lighthouse, or WAVE to find color issues and other accessibility problems.

User Testing

Test with real users who have disabilities. Include people with visual impairments in your usability testing.

Build Accessible Designs Today

Use our tools to create color combinations that everyone can read. Accessibility is required by law in many countries and is the right thing to do.