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
| What | Minimum | WCAG number |
|---|---|---|
| Normal text | 4.5:1 | 1.4.3 |
| Large text: 18 pt, or 14 pt bold | 3:1 | 1.4.3 |
| Icons, chart parts, input borders and other controls | 3:1 | 1.4.11 |
| Size of a button or link target | 24 × 24 CSS pixels | 2.5.8 |
Worked examples on white
We calculated these with the WCAG formula. White (#FFFFFF) is the background.
| Text colour | Ratio | Normal text | Large text |
|---|---|---|---|
| Black #000000 | 21.00:1 | Pass | Pass |
| Navy #000080 | 16.00:1 | Pass | Pass |
| Dark grey #595959 | 7.00:1 | Pass | Pass |
| Mid grey #767676 | 4.54:1 | Pass | Pass |
| Light grey #999999 | 2.84:1 | Fail | Fail |
| Blue #0000FF | 8.59:1 | Pass | Pass |
| Red #FF0000 | 3.99:1 | Fail | Pass |
| Green #008000 | 5.13:1 | Pass | Pass |
| Orange #FFA500 | 1.97:1 | Fail | Fail |
| Yellow #FFFF00 | 1.07:1 | Fail | Fail |
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
- Pick text and background pairs, not single colours, and store each pair's ratio.
- Give every grey a lowest allowed background.
- Set 24 pixels as the minimum target, and aim for about 44 for main buttons on phones.
- 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.