WCAG Accessibility Guide

A practical guide to the WCAG 2.2 success criteria that specifically affect color — what each one requires, how to test it, and how to fix failures without redrawing your entire palette.

By COOLOUR Editorial Team Published Updated

What WCAG 2.2 is

WCAG (Web Content Accessibility Guidelines) is published by the W3C and is the international standard for web accessibility. WCAG 2.2 was published in October 2023 and is the current recommendation. It's a superset of WCAG 2.1, adding new criteria without removing old ones.

WCAG is organized into three conformance levels — A, AA and AAA. AA is the standard most organizations target and the one referenced by legal accessibility regulations in most jurisdictions.

The four color-related criteria

1.4.1 Use of Color (Level A)

Color must not be the only visual means of conveying information, indicating an action, prompting a response, or distinguishing a visual element.

Practically: If your form uses red for error states, you must also include an icon or text label — not just a red border. If your chart distinguishes series only by color, add patterns or direct labels. If your links are distinguished only by color, add underlines or another non-color indicator.

How to test: Convert your design to grayscale. Anything that loses meaning is failing this criterion.

1.4.3 Contrast (Minimum) — Level AA

Text must have a contrast ratio of at least 4.5:1 against its background. Large text (≥18pt, or ≥14pt bold) requires at least 3:1.

Practically: Every text element needs to be checked, including:

  • Body text
  • Headings (which are usually large — 3:1)
  • Links (both inline and standalone)
  • Button labels
  • Form labels and placeholder text
  • Error messages
  • Captions and metadata
  • Text on gradients and images

How to test: Use our Contrast Checker for each text/background pair.

1.4.6 Contrast (Enhanced) — Level AAA

Same as 1.4.3 but stricter: 7:1 for normal text and 4.5:1 for large text.

Practically: AAA is often not achievable across an entire website, but is recommended where it doesn't compromise design or brand. Many teams aim for AA site-wide and AAA on critical content like primary navigation and long-form body text.

1.4.11 Non-text Contrast — Level AA

Visual information required to identify UI components and graphical objects must have a contrast ratio of at least 3:1 against adjacent colors.

Practically, this covers:

  • Form input borders — a user must be able to see that a text field exists.
  • Focus indicators — the outline or highlight around a focused element.
  • Icon-only buttons — an X close button, a hamburger menu, a search icon.
  • Toggle switches, checkboxes, radio buttons.
  • Chart elements that convey meaning — grid lines, axis labels, data series.

How to test: Check the contrast of each component's edge or shape against the surrounding background. A borderless input that only appears on hover fails this criterion.

The testing workflow

A practical, repeatable workflow for auditing a site's color accessibility:

  1. Extract every color pair from the design. Text on background, borders against backgrounds, UI elements against backgrounds.
  2. Test each pair for WCAG 2.2 AA. Use our Contrast Checker for pairs, or the WCAG Accessibility Checker for full compliance reports.
  3. Test in grayscale. Any pair that loses meaning in grayscale fails 1.4.1.
  4. Test with a color blindness simulator. Use our Color Blindness Simulator to verify that your colors remain distinguishable for users with protanopia, deuteranopia and tritanopia.
  5. Test with keyboard only. Ensure focus states are visible (1.4.11).
  6. Test on real screens. A pair that passes on a calibrated monitor can fail on a laptop in bright sunlight. Give yourself margin.

Fixing common failures

"Our brand color fails as text"

Add a darker variant. Your brand color can still be your brand color as a button, while text uses a darker shade. Example: brand teal #267D70 passes 5.4:1 on white. If your brand color doesn't, add -text tokens at a darker shade.

"Our disabled state is too pale"

Disabled controls aren't required to meet 1.4.3 (because they're inactive), but they should still be visually distinguishable. A common pattern: use a light tint at 60–70% of the enabled color's lightness — enough to look disabled, not so faint that it disappears.

"Our links fail as text"

Either darken the link color to pass 4.5:1, or add an underline (which is required by 1.4.1 regardless of contrast).

"Our placeholders fail"

Placeholder text is real text and must meet 4.5:1. Use a darker placeholder color than the default browser gray, and don't rely on placeholders alone for labels — use persistent visible labels.

Don't forget dark mode

Every combination must pass in both light and dark mode. This often means the dark-mode palette is not just an inversion — it needs its own tuned contrast pairs. A common failure is that the dark-mode text becomes too bright (over 15:1), which can cause eye strain.

WCAG 2.2 vs earlier versions

For color specifically, WCAG 2.2 doesn't add new criteria over 2.1 — the four color-related criteria (1.4.1, 1.4.3, 1.4.6, 1.4.11) were all present in WCAG 2.1. WCAG 2.2 adds criteria in other areas (like focus appearance and dragging movements) but doesn't change the color requirements.

FAQ

What is WCAG 2.2?
The current Web Content Accessibility Guidelines recommendation, published by the W3C in October 2023.
Which WCAG criteria apply to color?
1.4.1, 1.4.3, 1.4.6 and 1.4.11 are the color-relevant criteria.
Do I have to meet WCAG to be legally compliant?
In many jurisdictions, yes. WCAG 2.2 AA is the standard referenced by most accessibility regulations.
Does WCAG require a specific color palette?
No. WCAG sets contrast ratios, not colors. Any palette that meets the ratios is compliant.