Skip to content

WCAG contrast ratios explained: 4.5 to 1, 3 to 1 and 7 to 1

What the contrast numbers in the WCAG guidelines mean, how AA and AAA differ, and how to work out which ratio applies to your text.

Checked 24 November 2026

The numbers in the Web Content Accessibility Guidelines (WCAG) are ratios of brightness, and there are only a few of them to learn. Most body text needs 4.5 to 1. Large text and controls need 3 to 1. A stricter level asks for 7 to 1.1

The three numbers

WCAG sorts its requirements into levels. Level AA is the minimum to meet. Level AAA is stricter. Here are the ratios for each.

What it applies to Level AA Level AAA
Body text 4.5 to 11 7 to 11
Large text 3 to 12 4.5 to 12
Buttons, form borders, icons 3 to 11 Not defined1

In plain terms, body text should have a contrast ratio of at least 4.5 to 1 against its background to meet AA.1 At the stricter AAA level, that rises to 7 to 1 for normal text and 4.5 to 1 for large text.2

What counts as "large" is its own topic, and the sizes are on a page of their own.2 Buttons and form borders have their own page too.

Which one applies to my text?

Start with the text size and weight. Ordinary paragraphs, captions, menu items and footer notes all sit in the 4.5 to 1 row. Only text that's big enough, or big and bold enough, moves down to 3 to 1.2

Then think about how high to aim. MDN's advice is to make the contrast as good as your design allows. Ideally that means the AAA rating, and at least AA.1 AA is the sensible floor for a small site. If a colour pair clears AAA without hurting the look, take it.

Working out which ratio appliesNote the text size and weightDecide if it counts as large textPick the minimum for that sizeMeasure the colour pairDarken or lighten until it clears
Text size and weight decide the minimum.

Numbers must be met, not approached

The ratio is a hard line. WebAIM is blunt about it: you cannot round a contrast ratio up to 4.5 to 1. A common shade of grey, #777777, works out at 4.47 to 1 on white and doesn't meet the requirement.3 A touch darker, #767676, sits almost exactly at 4.5 to 1.3

That tiny gap is why you should measure instead of judging by eye. Two greys that look the same can fall on opposite sides of the line.

The ratio applies to every state

Links, buttons and menu items often change colour on hover or when a keyboard focuses them. WebAIM's reading is that text in all of those states must meet the same requirements, and each one gets measured on its own.3 It's an easy one to miss, because you only see the hover colour when you're hovering.

Where the numbers don't apply

Some text has no contrast requirement. A logo or brand name is one example.3 Your logo can stay as it is. The text in your menu and headings can't.

What to do with this

You don't need to calculate anything by hand. A checker does the arithmetic, and the checking guide shows how to use one. Write down the target for each piece of text first: 4.5 to 1 for most, 3 to 1 for large text and controls. Then measure, and adjust only the pairs that fall short.1

Cited material

  1. Color contrast, MDN Web Docs, Mozilla
  2. Contrast Checker, WebAIM, Utah State University
  3. Contrast and Color Accessibility, WebAIM, Utah State University