WCAG Encyclopedia

1.4.1 · PerceivableLevel A

Use of Color

Colour can carry meaning, but never on its own. If removing all colour from the screen would lose information, add a shape, a label, an underline, or an icon.

Principle
Perceivable
Guideline
1.4
Level
A
In WCAG since
2.0
Number
1.4.1

Broken, then fixed

The same interface twice: first with the mistake, then with the smallest change that fixes it.

Broken: Hue is the only signal.

Your order ships in two days. See the delivery schedule for regional cut-off times, or read the returns policy.

Links are blue text and nothing else. In greyscale, at low vision, or on a monochrome display they are indistinguishable from the sentence around them.

Fixed: A persistent underline was added.

Your order ships in two days. See the delivery schedule for regional cut-off times, or read the returns policy.

The underline survives greyscale, inverted colour, and a monochrome print-out. Colour still helps; it is no longer load-bearing.

How to test

Check your own interface against 1.4.1, one step at a time.

  1. Find everything on the page that uses colour to say something: links in text, required or invalid form fields, chart lines and segments, status labels, selected tabs, calendar days.
  2. Turn the page grey with the Rendering panel in Chrome or Edge DevTools (Emulate vision deficiencies, then Achromatopsia) and look at each item again.
  3. Check each one still says the same thing without colour, through an icon, a text label, an underline, a pattern or a change of shape.
  4. For links inside a paragraph with no underline, measure the link colour against the text colour around it with the DevTools colour picker or the free Colour Contrast Analyser. Below 3:1, the link needs an underline or another cue that is not colour.
  5. Read any instruction that names a colour, such as "fields in red are required", and check the same information is given another way.

Common questions

Do links in body text have to be underlined to pass 1.4.1?

No. An underline is the simplest other cue, but W3C also accepts links that differ from the text around them by colour, when the link colour has a contrast ratio of at least 3:1 with that text.

Can I use red to show an error?

Yes, as long as red is not the only sign. Add an icon or a message in text, so a person who cannot tell red from other colours still finds the error.

Does a chart pass 1.4.1 if each line has its own colour?

Only when something else tells the lines apart as well, such as a label at the end of each line, a different marker shape or a dashed pattern.

Try it yourself

A lab is a small working piece of interface that you change yourself. Read its steps, use the controls under it, and watch the verdict line at the bottom: it says whether the criterion passes or fails as you go. Reset puts it back.

Try it: check your own colours

How to use this lab

  1. Goal. Pick a text colour and a background, and find out whether people can read one on the other.
  2. The controls. The Text colour and Background fields each take a colour from a picker or a hex code, and the Swap text and background colours button swaps them. The preview is drawn in your two colours, and Contrast ratio, the 1–21 scale and the checks show how the pair measures against each threshold. Preview in greyscale shows the preview without colour, and when body text fails, the Use button sets the closest passing text colour.
  3. Try this. The lab starts with near-black text on yellow, which passes easily. Type #999999 in the Text colour hex field and #FFFFFF in the Background hex field, then press the Use button to fix the pair.
  4. What it means. On 1.4.3 and 1.4.1 the verdict line under the lab says whether body text reaches 4.5 : 1, the 1.4.3 level. On 1.4.11 it says whether borders and icons reach 3 : 1. Below that, people with low vision, or anyone on a dim screen, can’t read the text or make out the control.

Pick a text colour and a background. Everything below is drawn in those two colours and measured live.

Text colour
Background
Contrast ratio11.74 : 1

The contrast ratio compares how bright the two colours are. 1 : 1 means the colours are identical, so text in them is invisible; 21 : 1 is black on white, the most there is. The higher the number, the easier it is to read.

On the scale from 1 : 1 to 21 : 1, 11.74 : 1 is at or above 7 : 1: enough for every threshold.

Why the thresholds differ
  • Body text needs 4.5 : 1 (1.4.3, Level AA). That is any text below large size.
  • Large text needs 3 : 1 (1.4.3). Large means at least 24px, or 18.66px and bold. Bigger, heavier letters stay readable with less contrast.
  • At Level AAA, body text needs 7 : 1 (1.4.6), for people with moderately low vision.
  • Borders and icons need 3 : 1 (1.4.11): the edge of a field or checkbox, a focus ring or an icon, against what is next to it. You have to see that they are there, not read them.
  • PassesBody text, AA · 1.4.3Body text needs at least 4.5 : 1. This pair has 11.74 : 1.
  • PassesLarge text, AA · 1.4.3Large text needs at least 3 : 1. This pair has 11.74 : 1.
  • PassesBody text, AAA · 1.4.6Body text at AAA needs at least 7 : 1. This pair has 11.74 : 1.
  • PassesBorders and icons, AA · 1.4.11Borders and icons need at least 3 : 1. This pair has 11.74 : 1.

1.4.1 passes

Open the full colour check

Try it: take the colour away

How to use this lab

  1. Goal. Make the links and the field in error stand out without relying on colour.
  2. The controls. “Vision filter” shows the mock in Full colour, in Greyscale, or as seen without red, green or blue cones. The tick boxes under “Add a cue that is not colour” are Underline the links and Mark the error with an icon. The results say whether The links and The field in error each stand out or are lost.
  3. Try this. The lab starts failing, because the links and the error differ by colour alone. Choose Greyscale and watch both get lost. Then tick Underline the links and Mark the error with an icon.
  4. What it means. 1.4.1 passes only when both still stand out without colour, which the lab judges in greyscale whatever filter you choose. With colour alone, people who see colour weakly or not at all can’t find the links or the field in error. The verdict line under the lab says which.
Vision filter
Add a cue that is not colour
  • LostThe links: 1.58 : 1 against the text around them, needs 3 : 1. Lost.
  • LostThe field in error: 1.34 : 1 against the field beside it, needs 3 : 1. Lost.

1.4.1 fails

Also in guideline 1.4

Criteria in the same guideline often fail together.