UI design

WCAG colour contrast ratios explained: AA vs AAA

WCAG asks for 4.5:1 contrast for normal text and 3:1 for large text at level AA. Here is what each rule covers, how the ratio is calculated, and the exceptions.

WCAG colour contrast ratios set how different text and background colours must be: at least 4.5:1 for normal text and 3:1 for large text to meet level AA. Level AAA raises those to 7:1 and 4.5:1. Icons, form borders and other interface parts need 3:1 against whatever sits next to them.

This guide explains what each rule covers, what counts as large text, how the ratio is calculated, the exceptions, and where the newer APCA method fits in.

Last checked: October 2026.

Key takeaways

  • AA: 4.5:1 for normal text, 3:1 for large text. AAA: 7:1 and 4.5:1.
  • Large text means at least 24px, or about 18.5px and up when bold (the W3C’s own approximations).
  • Icons, input borders and focus indicators need 3:1 against adjacent colours (success criterion 1.4.11).
  • Ratios are never rounded up: 4.49:1 fails the 4.5:1 rule.
  • WCAG 2.2 is the current standard. APCA is not part of it, and WCAG 3’s contrast method is still undecided.

WCAG contrast ratio requirements

WhatLevel AALevel AAASuccess criterion
Normal text4.5:17:11.4.3 / 1.4.6
Large text (24px+, or ~18.5px+ bold)3:14.5:11.4.3 / 1.4.6
Icons, input borders, focus indicators, chart lines3:1No higher level1.4.11
Logos, decorative text, disabled controlsNo requirementNo requirementExceptions

Most accessibility laws and procurement rules point to level AA, so treat AA as the minimum. AAA is a sensible target for long-form reading, but the W3C does not expect whole sites to meet every AAA criterion.

What counts as large text

WCAG defines large text as at least 18 point, or 14 point when bold. The W3C gives these as approximately 24px and 18.5px. In practice:

  • Body copy at 16px or 18px is normal text and needs 4.5:1, even when it feels large.
  • Headings at 24px and above can use 3:1.
  • Bold text from 19px is safely large, which helps with buttons and labels.

Thin or decorative typefaces can be harder to read than their size suggests. The W3C notes that very light weights may need more contrast than the minimum, so don’t treat 3:1 as a target for hairline fonts.

How the contrast ratio is calculated

Each colour is converted to its relative luminance, a value from 0 for black to 1 for white that reflects how bright the colour looks to the eye. The ratio is then:

contrast ratio = (L1 + 0.05) / (L2 + 0.05)

L1 = relative luminance of the lighter colour
L2 = relative luminance of the darker colour

The result runs from 1:1 (identical colours) to 21:1 (black on white). Because green contributes far more to luminance than blue, two colours that look equally strong can score very differently.

Some real values against a white background show how fine the margins are:

Text colourRatio on whiteNormal text (AA)
#767676 mid grey4.54:1Passes
#777777 one step lighter4.48:1Fails
#6b7280 slate grey4.83:1Passes
#9ca3af light grey2.54:1Fails
#3b82f6 bright blue3.68:1Large text only
#2563eb deeper blue5.17:1Passes
#595959 dark grey7.01:1Passes AAA

The W3C is explicit that results should not be rounded: 4.499:1 does not meet 4.5:1. That is why #777777 fails while #767676, one shade darker, passes.

Interface components and icons

Success criterion 1.4.11, non-text contrast, asks for 3:1 between the parts of an interface someone needs to see and the colours next to them. That includes:

  • Input and checkbox borders, when the border is what shows where the field is.
  • Icons that carry meaning without a text label, such as a search or close icon.
  • Focus indicators and the selected state of tabs or toggles.
  • Lines and segments in charts that are needed to understand the data.

Pale grey input borders are the most common failure. A border of #d1d5db on white measures only 1.47:1. Either darken the border or give the field a background that contrasts with the page.

Exceptions and tricky cases

  • Logos and brand names have no contrast requirement.
  • Disabled controls and purely decorative text are exempt.
  • Placeholder text is still text. If it gives information, such as an example format, it needs 4.5:1.
  • Text over images, gradients or glass must pass at its weakest point. Check against the lightest and darkest areas behind the text. The glassmorphism guide covers this for frosted panels.
  • Soft UI styles such as neumorphism rely on subtle shadows, so buttons often fail 1.4.11. Add a border or a stronger edge to anything people need to click.

Tip: When text fails, darken or lighten the text before touching the background. Changing the text colour within the same hue usually keeps the design intact and fixes the ratio in one step.

APCA and WCAG 3

APCA is an alternative contrast method that accounts for font size, weight and whether text is light on dark or dark on light. It was included in early WCAG 3 drafts but removed in 2023, and the April 2026 editor’s draft says the contrast algorithm for WCAG 3 is yet to be determined. WCAG 3 itself is still a working draft.

For now, WCAG 2.2’s ratio is the standard you will be measured against. APCA can be a useful second opinion, especially for dark mode, but it doesn’t replace the 4.5:1 and 3:1 rules.

Check your colours

Paste your text and background colours into the contrast checker. It tests the pair against every rule above, never rounds up, and suggests the closest passing colour in the same hue when a pair fails. It also builds an 11-step palette from your brand colour, with a pass or fail for white and black text on every swatch.

Sources: Understanding SC 1.4.3 (W3C), WCAG 3.0 working draft.