Colour contrast and touch size: the WCAG 2.2 numbers

Facts checked 4 December 2026.

For WCAG 2.2 level AA, normal text needs a contrast ratio of at least 4.5:1 with its background. Large text, icons and control borders need at least 3:1. Buttons and links need a target of at least 24 by 24 CSS pixels, with a few exceptions.

Normal text
4.5:1
Large text
3:1
Icons and controls
3:1
Touch target
24 × 24 CSS pixels
Level
AA

The rules

WhatMinimumWCAG number
Normal text4.5:11.4.3
Large text: 18 pt, or 14 pt bold3:11.4.3
Icons, chart parts, input borders and other controls3:11.4.11
Size of a button or link target24 × 24 CSS pixels2.5.8

Worked examples on white

We calculated these with the WCAG formula. White (#FFFFFF) is the background.

Text colourRatioNormal textLarge text
Black #00000021.00:1PassPass
Navy #00008016.00:1PassPass
Dark grey #5959597.00:1PassPass
Mid grey #7676764.54:1PassPass
Light grey #9999992.84:1FailFail
Blue #0000FF8.59:1PassPass
Red #FF00003.99:1FailPass
Green #0080005.13:1PassPass
Orange #FFA5001.97:1FailFail
Yellow #FFFF001.07:1FailFail

How the ratio is worked out

The ratio is (L1 + 0.05) ÷ (L2 + 0.05), where L1 is the relative luminance of the lighter colour and L2 of the darker one. It runs from 1:1, the same colour, to 21:1, black on white. Green adds the most to luminance and blue the least, which is why yellow on white fails and navy on white passes easily.

Touch target exceptions

A smaller target can still pass in these cases:

  • There is enough empty space around it.
  • Another control on the page does the same job at the right size.
  • It is a link inside a sentence.
  • The browser sets the size and you haven't changed it.
  • The exact size is essential, such as a pin on a map.

Common mistakes

  • Light grey placeholder text in forms
  • Text over photos without a solid or dark layer behind it
  • Colour as the only sign of an error. Add an icon or words.
  • Checking the default state but not hover, focus and disabled states
  • Testing only the light theme

Put it in your design system

  1. Pick text and background pairs, not single colours, and store each pair's ratio.
  2. Give every grey a lowest allowed background.
  3. Set 24 pixels as the minimum target, and aim for about 44 for main buttons on phones.
  4. Check the real page as well as the design file.

Common questions

What contrast ratio does text need?

At least 4.5:1 for normal text and 3:1 for large text, under WCAG 2.2 level AA. Large text means 18 point, or 14 point bold.

How big should a button be?

WCAG 2.2 level AA needs a target of at least 24 by 24 CSS pixels, with some exceptions. Bigger is easier to use on phones.

Sources

This guide was drafted with AI help and checked against the sources below. A named expert hasn't reviewed it yet.

Report a mistake on this page

Studying or working in digital, ui & ux design? IvySpaces has free courses and tools.