Essential cookies keep Huevex running. With your permission we also measure how the site is used. Nothing optional loads until you choose. Cookie Policy

Color Accessibility Guide: WCAG Contrast Standards

Color should communicate, not exclude. Learn the WCAG contrast guidelines, understand color vision deficiencies, and test any two colors for compliance with the contrast checker below.

Looking for just the numbers? Open the contrast checker - two colors in, WCAG AA and AAA results out, with a suggested nearest passing color when a pair fails.

Test your colors

Enter a text color and a background color to see the contrast ratio and whether it passes WCAG AA and AAA for normal text, large text, and UI components.

Contrast CheckerLive Preview
Text color
Background color

The quick brown fox jumps

Sample body copy shows real-world legibility at typical reading sizes.

SMALL LABEL · UI ELEMENT · 12PX

3.23:1Passes AA Large
Normal textbelow 18pt / 24px, or bold below 14pt4.5:1 / 7:1
AAFail
AAAFail
Large text18pt+ / 24px+, or bold 14pt+3:1 / 4.5:1
AAPass
AAAFail
UI components & graphicsbuttons, icons, focus states, charts3:1 / -
AAPass
AAAN/A

What is WCAG contrast?

The Web Content Accessibility Guidelines (WCAG) define minimum contrast ratios between text and its background to ensure content is readable for people with low vision, color blindness, or situational impairments like glare.

Contrast is measured as a ratio from 1:1 (no contrast) to 21:1 (black on white). The guidelines set thresholds across three conformance levels - A, AA, and AAA - with AA being the most widely referenced legal and standard baseline.

Conformance levels

A

Level A - Minimum

The baseline tier. Addresses the most fundamental accessibility barriers - such as providing text alternatives for non-text content and ensuring content is perceivable in some form. Most sites should exceed this.

AA

Level AA - Standard

The conformance level referenced by most legal frameworks and accessibility laws (ADA, EN 301 549, Section 508). This is the target most organizations aim for and what Huevex checks by default.

AAA

Level AAA - Enhanced

The highest tier. Not required for whole sites and not always achievable for all content, but recommended where stricter readability is needed (e.g. healthcare, finance, government).

Minimum contrast ratios

ElementAAAAANotes
Normal textbelow 18pt / 24px, or bold below 14pt
4.5:17:1Body copy
Large text18pt+ / 24px+, or bold 14pt+
3:14.5:1Display & headings
UI componentsbuttons, icons, focus states, charts
3:1-Borders, icons
Non-text contrastgraphical objects & boundaries
3:1-Graphics

Color vision deficiencies

Around 8% of men and 0.5% of women have some form of color vision deficiency. Designing palettes that remain distinguishable across these conditions is a core part of accessible color work.

Protanopia

≈1% of males

Red-blind. Difficulty distinguishing red from green; reds can appear dark or blackened.

Deuteranopia

≈1% of males

Green-blind. The most common form; reds and greens look similar, often muddy.

Tritanopia

Rare

Blue-yellow deficiency. Blues and greens are hard to tell apart, yellows may shift.

Achromatopsia

≈1 in 33,000

Complete color blindness - no color perception, only brightness. Design must work in greyscale.

Best practices

Don't rely on color alone

Pair hue with labels, icons, patterns, or text. A red error border should also carry an icon or message - otherwise color-blind users miss it.

Design for focus states

Interactive elements need a visible focus outline with at least 3:1 contrast against the background - keyboard users depend on it.

Test in both modes

A ratio that passes on white can fail on a dark surface. Verify every theme, including dark mode and high-contrast variants.

Check non-text contrast

Icons, chart strokes, and component borders need 3:1 against adjacent colors. Decorative imagery is exempt.

Keep body copy at 4.5:1+

Large display text can dip to 3:1, but body copy should always meet the 4.5:1 AA baseline for sustained reading.

Mind link legibility

Links inside text need contrast against surrounding text (3:1) and against their background (4.5:1). Underlines help.

Practical tips

  • Aim for 4.5:1 on body text - the AA baseline most regulations reference.
  • Large display text can drop to 3:1, but keep body copy at 4.5:1 or higher.
  • Don't rely on color alone to convey meaning; pair hue with labels, icons, or patterns.
  • Check focus outlines and interactive states against their backgrounds - 3:1 minimum.
  • Verify designs in both light and dark modes; a ratio that passes on white can fail on a dark surface.
  • Use tools that simulate color blindness - if a palette still communicates in greyscale, it's safe.
  • AAA (7:1) is ideal for long-form reading, healthcare, legal, and finance content.