Skip to content

What a contrast ratio actually measures (and why 4.5:1 matters)

6 min read June 12, 2026
accessibilitycontrastwcagcolordesign

Contrast ratio is a number from 1:1 to 21:1 comparing how light your text is against its background. WCAG sets 4.5:1 as the floor for normal text so most people can read it. Here is where the number comes from.

What a contrast ratio actually measures (and why 4.5:1 matters) — Hivly

Light gray text on a white background looks clean in the mockup and turns out to be a wall to anyone whose eyes are a little tired, a little older, or a little different. Whether text is readable is not a matter of taste, it is a measurable thing, and the measurement is the contrast ratio. Once you know what the number is comparing, the accessibility rules built on it stop feeling arbitrary.

TL;DR: A contrast ratio compares how light your text is against its background, on a scale from 1:1 (identical, invisible) to 21:1 (black on white). WCAG sets 4.5:1 as the minimum for normal body text and 3:1 for large text, so most people can read it. The number tracks luminance, not hue, which is why some bright color pairs still fail.

The scale: from 1:1 to 21:1

A contrast ratio is one number that says how different two colors are in lightness. It runs from 1:1 at the bottom to 21:1 at the top. At 1:1 the text and the background are the same lightness, so the text vanishes into it. At 21:1, the maximum, you have pure black on pure white, the most legible pairing there is.

Everything readable lives between those poles. The ratio is written as a pair, like 4.5:1, meaning the lighter of the two colors is 4.5 times as luminous as the darker one. Higher is easier to read. The whole point of the number is to turn a vague judgment, does this look readable, into something you can check and pass or fail.

It measures luminance, not color

Here is the part that surprises people: the ratio is not about which colors you picked, it is about how light each one is. The technical term is relative luminance, the perceived brightness of a color once you account for the fact that the eye is far more sensitive to green than to blue. The formula weights the red, green and blue channels accordingly, then compares the two results.

This is why two colors that look wildly different can still have terrible contrast with each other. A saturated red on a saturated green is a jarring combination, but if the two have similar luminance, the text on it is genuinely hard to read, especially for someone with a color vision deficiency who leans on lightness differences more than hue. Contrast is a brightness gap, not a color clash, and confusing the two is how good-looking designs end up unreadable. You can check any text-and-background pair against the WCAG thresholds in a contrast checker at color.hivly.net and see the exact ratio before you ship it.

Where 4.5:1 comes from

The number 4.5:1 is not a designer’s preference, it is the threshold the Web Content Accessibility Guidelines set for normal-size body text at the AA level, the level most of the web aims for. It was chosen as the point below which ordinary text becomes hard to read for a meaningful share of people, including those with moderately reduced vision or mild color vision deficiency. Clear that bar and your body text is legible to the large majority.

Large text gets an easier target, 3:1, because bigger and bolder letters are readable at lower contrast. The strokes are thicker and the shapes are larger, so the eye needs less of a brightness gap to resolve them. That is the logic behind the two numbers: the smaller and finer the text, the more contrast it needs to stay readable, so the rules ask for more where the text is small and less where it is large.

AA, AAA, and choosing your floor

WCAG defines two levels, and the difference is how strict the contrast has to be. AA, the common target, asks for 4.5:1 on normal text and 3:1 on large text. AAA, the strict level, raises that to 7:1 on normal text and 4.5:1 on large. AAA is harder to design around because it rules out a lot of soft, low-contrast styling, but it makes content readable for people with more significant low vision.

Most sites aim for AA and treat it as the floor, not the goal. If your audience skews older or includes many readers with vision impairments, reaching for AAA on your core text is a reasonable call. Either way, the move is the same: decide your floor, measure every text-and-background pair against it, and fix the ones that fall short before anyone has to squint. The number takes the guesswork out, which is the entire reason it exists.

Try the color toolsBuild palettes, check contrast, blend and convert, and generate gradients.

Frequently asked questions

What does a contrast ratio like 4.5:1 mean?
It compares the relative luminance, the perceived lightness, of your text and its background. The scale runs from 1:1, where the two are identical and the text is invisible, to 21:1, pure black on pure white. A 4.5:1 ratio means the lighter color is 4.5 times as luminous as the darker one.
Why is 4.5:1 the standard for body text?
It is the WCAG AA threshold, chosen so that text stays readable for most people, including those with moderately low vision or mild color vision deficiency. Below it, body text gets hard to read for a meaningful share of users. Large or bold text gets a lower bar, 3:1, because size compensates.
Does contrast ratio depend on the colors or just light and dark?
It depends on luminance, which is how light a color appears, not its hue. Two very different colors can have the same luminance and therefore poor contrast with each other, which is why some bright color pairings look bold but still fail readability. The math weights red, green and blue by how the eye perceives them.
What is the difference between AA and AAA contrast?
They are two WCAG conformance levels. AA asks for 4.5:1 on normal text and 3:1 on large text, the common target for most sites. AAA is stricter, 7:1 on normal text and 4.5:1 on large, aimed at the highest accessibility, useful when your audience includes many low-vision readers.

Keep reading

Building something bigger?

Hivly is made by CodingEagles, a software studio that ships production web apps. If you have a real project, get in touch.

See what CodingEagles does →