PreuveAccessibility audits

Contrast

Text too faint to read

Light grey on white looks restrained on a designer's monitor and disappears on a laptop in a bright room, or for anyone whose vision is not what it was. The requirement is a number, and you can measure any pair on your own site in about a minute.

A free tool finds this

§ 02

What it costs

Contrast is the most widely experienced accessibility problem there is. It affects people with low vision, everyone over about forty, and anybody reading outdoors — which on most sites is a larger group than every other barrier combined. It is also, unusually, free to fix: darkening a colour costs nothing and ships with the next deploy.

§ 03

See it on your own site

Two routes. The second is more precise and tells you the number you would have to defend in a report.

With the keyboard alone

You need
Your own eyes, outdoors or by a window
About
1 minute

What to do

  1. Open your site on a phone and take it somewhere bright.
  2. Read the small print: captions, form hints, footer text, placeholder text inside form fields, anything grey.
  3. Note anything you find yourself squinting at or tilting the screen for.

If your site is fine

All of it is readable without effort, including the grey text.

If it has the problem

Anything you had to work at. This is not a conformance test, but it finds the real problems quickly and it is the one check you can do without any tools at all.

With your browser's developer tools

You need
Any desktop browser
About
2 minutes

What to do

  1. Right-click the faint text and choose Inspect.
  2. In the Styles pane, click the small colour swatch next to the text's `color` value.
  3. The picker shows the contrast ratio against the computed background, with the thresholds marked.
  4. Compare it against the requirement for that text's size and weight, using the table below.

If your site is fine

The ratio meets or exceeds the requirement for that text's size.

If it has the problem

A ratio below it. Note the number rather than just the verdict — the gap between 4.1:1 and 2.1:1 is the difference between a tweak and a redesign.

§ 04

Measure a pair

Enter any two colours and the page computes the ratio the standard defines, and the requirement that applies. Change what is being tested and the ratio stays the same while the threshold moves — which is the part people get wrong. A colour is not simply right or wrong; it is right or wrong for a purpose.

Three real pairs

The calculator needs JavaScript. These are measured pairs from this site's own palette, checked in CI on every build.

Three real pairs
PairMeasured ratioRequiredVerdict
Body text on paper17.56:14.5:1Meets the requirement
Secondary text on paper7.95:14.5:1Meets the requirement
Input border on paper3.73:13:1Meets the requirement

Where the number comes from

Worth knowing, because it explains the results that look wrong. Each colour channel is converted to a 0–1 scale and straightened out, then weighted and summed:

L = 0.2126·R + 0.7152·G + 0.0722·B

ratio = (L_lighter + 0.05) / (L_darker + 0.05)
  • Green is weighted far above red and blue, because human vision is most sensitive to it. That is why a mid-grey can fail where a saturated blue of apparently similar lightness passes — and why “it looks fine on my monitor” is not an argument anyone can act on.
  • The constant added to both sides is why pure black on pure white is 21:1 rather than infinite.
  • The requirement changes with the text's size and purpose, not with the colours. Same ratio, different threshold.

The thresholds

The thresholds
What is being testedRequiredCriterion
Normal text4.5:11.4.3 Contrast (Minimum), AA
Large text — 24px, or 18.66px bold3:11.4.3, AA
Controls, borders and meaningful icons3:11.4.11 Non-text Contrast, AA
Normal text, enhanced7:11.4.6 Contrast (Enhanced), AAA

What the number cannot tell you

Contrast is the most automatable criterion there is, and it still has a judgment layer. This is the part a scanner reports badly in both directions.

  • Whether the text counts at all. Incidental text, text in a logo, and text in a disabled control are exempt — so a tool that flags them is producing noise you will waste time on.
  • Text over a photograph, a gradient or a semi-transparent panel, where there is no single background colour and the answer changes from one pixel to the next.
  • Text that only appears on hover or focus, which a single pass never renders and therefore never measures.
  • Whether “large” applies, which depends on the computed size, the weight, and what the visitor has done to their zoom.

And the formula itself is imperfect

Worth saying, because you will eventually find a pair that passes and still looks wrong. The WCAG 2.x formula systematically misjudges some combinations — light text on mid-tone backgrounds in particular — and a perceptual replacement is under active consideration for the next major version of the guidelines. We assess against the formula the standard cites today, because that is what a filing and a procurement response are measured against. Where the formula and the eye disagree, we say so in the report rather than hiding behind the arithmetic.

§ 05

How to fix it

Almost always: darken the text rather than lighten the background. Backgrounds carry brand; body text rarely does.

  • Fix it at the token, not at the component. One grey defined in one place and used everywhere is one change; the same grey pasted into forty components is forty.
  • Check the pair you actually ship, including the dark presentation if you have one. A palette that passes in light and fails in dark is a common and entirely avoidable result.
  • Do not forget placeholder text inside form fields. Browser defaults are light grey and almost always fail, and it is the text people most need to read.
  • Put the check in CI so it cannot regress. Ours runs on every build and fails it — fourteen pairs per theme, both presentations.

This is the single cheapest finding to repair in any audit we do, and we would rather you simply fixed it. If the palette itself needs rethinking — which happens when a brand colour is the problem — that is a conversation worth having before a redesign rather than after.

§ 06

What you have just checked, and what you have not

You have checked one thing, on one page. Depending on which standard applies to you, between twelve and eighteen of its success criteria have no automated check in any tool — including ours — so on your site nothing has looked at them. That gap is the whole of what an audit is. It is also why a home inspector's three photographs from the curb are useful, alarming, and not the document the bank accepts.

A free tool would find the blunt version of this one too, and we would rather say so than let you discover it. What a free tool cannot tell you is everything below the blunt version — which is most of this page.

See exactly which criteria nothing checks


Want the rest of the list?

The free scan tests a sample of your pages against the standard that applies to you, and separates what a free tool would also have caught from what only we found and from what nothing examined. No charge, and nothing to install.

§ 07

The criterion, for the record

1.4.3 Contrast (Minimum)

Level AA · In WCAG since WCAG 2.0

The W3C's own explanation

1.4.3 Contrast (Minimum) is level AA and has been in WCAG since version 2.0, so every standard we assess against cites it: the AODA, SGQRI 008 and EN 301 549.