WCAG Color Contrast Accessibility Guidelines Explained

WCAG color contrast accessibility guidelines explained in plain language. Exact ratios, what counts as large text, which elements are exempt, and how to test free.

WCAG Color Contrast Accessibility Guidelines Explained

The Web Content Accessibility Guidelines (WCAG) include specific, measurable requirements for colour contrast — the luminance difference between text and the background it sits on. Unlike many accessibility guidelines that require interpretation, the contrast requirements are expressed as exact numbers: 4.5:1 for normal text, 3:1 for large text at Level AA.

This guide explains every aspect of the WCAG colour contrast guidelines — what the numbers mean, which elements they apply to, what is exempt, and how to check your website free.

What Is the WCAG Colour Contrast Guideline?

The colour contrast requirement is found in WCAG Success Criterion 1.4.3 (Minimum Contrast) for Level AA and 1.4.6 (Enhanced Contrast) for Level AAA. These criteria apply to all versions of WCAG — 2.0, 2.1, and 2.2 — with identical thresholds.

Success Criterion 1.4.3 — Level AA:

  1. Normal text: minimum contrast ratio of 4.5:1
  2. Large text: minimum contrast ratio of 3:1

Success Criterion 1.4.6 — Level AAA:

  1. Normal text: minimum contrast ratio of 7:1
  2. Large text: minimum contrast ratio of 4.5:1

Level AA is the standard required by most accessibility laws worldwide — ADA in the US, the European Accessibility Act, EN 301 549, and the UK Equality Act. Level AAA is best practice and is rarely legally mandated.

How the Contrast Ratio Is Calculated

The contrast ratio measures the difference in relative luminance between two colours. Relative luminance is a measure of how much light a colour appears to emit, calculated from the RGB values after gamma correction.

The formula: Contrast Ratio = (L1 + 0.05) / (L2 + 0.05)

Where L1 is the relative luminance of the lighter colour and L2 is the relative luminance of the darker colour. Pure white has a luminance of 1 and pure black has a luminance of 0, giving them a contrast ratio of 21:1 — the maximum possible.

You do not need to calculate this manually. Enter any two hex codes into the free colour contrast checker to get the exact ratio and WCAG pass/fail result instantly.

What Counts as "Large Text"?

WCAG defines large text as:

  1. 18pt (approximately 24px) or larger for regular weight text
  2. 14pt (approximately 18.5px) bold or larger for bold text

Large text requires only a 3:1 contrast ratio (AA) instead of 4.5:1, because larger characters are inherently easier to read at lower contrast. The size and weight at which text qualifies as "large" is determined by the rendered text on screen — not the font size in your design files, which may differ from the CSS pixel value.

Which Elements Does the Guideline Apply To?

The contrast requirement applies to all text and images of text — meaning any image that contains text that conveys information must also meet the contrast requirement against its background.

Covered by WCAG 1.4.3:

  1. Body text and paragraphs
  2. Headings (H1–H6)
  3. Navigation links and menu items
  4. Button labels and call-to-action text
  5. Form labels, input text, and placeholder text
  6. Error messages, validation text, and helper text
  7. Captions, footnotes, and fine print
  8. Text inside data tables
  9. Tooltip text
  10. Text inside images that conveys information

What Is Exempt from the Contrast Requirement?

WCAG 1.4.3 explicitly lists four exemptions:

1. Inactive/disabled user interface components Text that is part of a disabled form control or button that is not currently interactive is exempt. The greyed-out "Submit" button before a form is completed does not need to meet contrast requirements.

2. Purely decorative text Text that is decorative only — conveying no information and serving no function — is exempt. A watermark behind content, or stylised text used purely as a visual texture, is not required to meet contrast standards.

3. Text in logos and brand marks Logotypes — text that is part of a logo or brand name — are exempt from contrast requirements. This allows brands to use their trademarked colour combinations regardless of contrast ratio.

4. Text in inactive user interface components User interface components that are currently inactive (non-interactive) are exempt.

Common Elements That Designers Forget to Test

Placeholder text in form fields: Most browsers render placeholder text at around 50% opacity. Even if you define a grey placeholder colour that looks fine in your design tool, it may fail at the actual rendered opacity. Always test placeholder text against the input field background.

Text over background images: When text sits on a photograph or gradient, the contrast varies across the image. WCAG requires sufficient contrast everywhere text appears — not just in the areas where contrast happens to be acceptable.

Focus indicator text: If your focus ring includes text labels, those need to meet contrast requirements too.

Status badges and tags: Small coloured pills used for status labels (Active, Pending, Error) are commonly skipped in accessibility audits. These need to meet the same 4.5:1 standard as body text.

Data visualisation labels: Text labels on charts, graphs, and maps must also meet contrast requirements.

How to Test WCAG Colour Contrast for Your Website

Single colour pair

Go to webassetsuite.com/contrast-checker, enter your text colour and background colour as hex codes, and the tool instantly shows the contrast ratio and WCAG pass/fail badges for AA, AAA, AA Large, and AAA Large.

Multiple brand colours

Use the Palette Contrast Grid in the contrast checker. Add all your brand colours and the grid shows every possible combination's contrast ratio in a single table — making it easy to see at a glance which pairs pass and which need adjustment.

Colourblind simulation

Toggle the Protanopia, Deuteranopia, or Tritanopia simulation to see how your colour combinations appear to users with colour vision deficiency — catching problems that contrast ratios alone don't reveal.

WCAG Contrast Guidelines at a Glance

Related guides:

  1. Free colour contrast checker — WCAG AA & AAA
  2. WCAG contrast checker — free online tool
  3. ADA compliance colour checker
  4. WCAG AA vs AAA — which standard do you need?
× Enlarged image preview

Usage Limit Reached

You've used your 3 free tool uses. Please create a free account to continue using our tools without limits.