Barrierepruefung.de Web Accessibility Checker

WCAG 1.4.1 Use of Color: explained simply

Colour must not be the only visual means of conveying information, indicating an action, prompting a response or distinguishing a visual element. Another visible cue is needed, such as text, an icon, a pattern or an underline. A lightness contrast of at least 3:1 can count as that cue, unless users must recognise a particular colour.

Last reviewed: Sources

What does the criterion require?

Not everyone sees colour the same way. People with partial sight often have limited colour vision, and many older people do not see colour well. People with a colour vision deficiency cannot tell certain colours apart. And on a display with few colours or in monochrome, information that exists only in colour is lost.

So the criterion requires that colour is not the only visual means of

  • conveying information, such as "required fields are red",
  • indicating an action, such as a link opening in a new window or a record having been updated,
  • prompting a response, such as highlighting a required field that was left blank,
  • or distinguishing a visual element from others.

Colour remains welcome, colour coding included, as long as another visual cue goes with it. One W3C example is a form that shows required fields with red labels and also places an icon next to them.

The W3C's notes settle several borderline cases:

  • Lightness counts as a second cue. If two colours differ not only in hue but also clearly in lightness, with a contrast ratio of at least 3:1, that is an additional visual distinction. A light green and a dark red would then pass. Inverting an element's foreground and background colours also passes, provided the two colours have enough contrast. But if users have to recognise a particular colour, such as a green outline for "valid" and a red one for "invalid", a further cue is needed regardless of contrast.
  • No colour difference, no requirement. A link styled exactly like the text around it does not fail 1.4.1, because no colour distinguishes anything there.
  • It is about sight, not assistive technology. A note in the standard says that 1.4.1 addresses colour perception specifically. Other forms of perception, including programmatic access to colour, are covered in Guideline 1.3. The criterion is meant for sighted people who cannot distinguish some colours. How information reaches screen reader users is covered by other criteria, such as 1.1.1 Non-text Content, 1.3.1 Info and Relationships and 4.1.2 Name, Role, Value. Conversely, a cue that only assistive technology receives does not satisfy 1.4.1. A visible alternative to colour is required.
  • Visited links are exempt. Browsers usually mark visited links by colour alone, and sites have very little control over this for technical reasons. If visited and unvisited links differ only by colour, that is not a failure, even below 3:1. All text links must still meet the contrast against the page background required by 1.4.3 Contrast (Minimum).

Common failures

  • Links in body text identifiable only by colour (F73). The underline has been removed, and the link colour differs from the surrounding text only in hue. It is still a failure if the underline only appears on hover or focus. A link that is also bold does not fail, nor does one whose colour has a contrast of at least 3:1 with the surrounding text (G183). Even then, the W3C suggests considering an underline or bold text.
  • Required fields and errors marked by colour only (F81). The label "Phone number" is shown in a different colour from the optional fields, with nothing else to say the field is required. Or a field with an error is shown only in red text. It would not fail 1.4.1 if the text also stood out in another way, such as bold, or differed in lightness by at least 3:1. According to F81, the example may still fail other criteria, such as 1.3.1, 3.3.1 and 4.1.2.
  • Charts that rely on colour alone (F13). A bar chart shows red bars for sales below the yearly quota, with no other cue. G111 suggests patterns: in a chart of housing prices, each bar has its own colour and its own pattern, and the legend shows both. A transport map can mark the stops of each route with a distinctive icon.

Checked automatically and checked by you

What the automated check detects

Coverage: selective

The automated check covers individual aspects of this criterion.

Links within body text are checked. Colour as the sole carrier of meaning elsewhere remains open.

Rules

What you check yourself

You answer this question in the manual checks of your scan.

Is nothing conveyed by colour alone?

  1. Look for places where a colour means something: required fields and errors in forms, status indicators, charts and maps with a colour legend, the active menu item, dates or values highlighted in colour. The automatic check already covers links within body text; everything else is for you to assess.
  2. At each place, check whether the same meaning is also shown visibly in another way: through text, an icon, a pattern, an underline or a different shape. A cue that only assistive technology receives is not sufficient; a visible feature is required.
  3. If two colours also differ clearly in lightness, with a contrast of at least 3:1 between them, that counts as an additional feature. This does not hold where a particular colour has to be recognised, such as a green outline for "valid" and a red one for "invalid": then a further visible feature is needed.
  4. It is not a defect if visited links differ from unvisited ones only by colour.

Classification

Level
A
Introduced in
WCAG 2.0
W3C explanation
Understanding 1.4.1