When colour is the only information
AccessibilityRed means taken, green means free.
5 min read
By Timo Wessels Published
Red means taken, green means free. The red field is the error. The blue line in the chart is revenue, the orange one is costs.
That works. It is clear, quick to take in and looks good.
It just does not work for everybody. You do not have to give up colour for that. The question is: is colour the only information?
The most important points first:
- Colour may stay. It just needs a second cue: a word, a symbol, an underline, a pattern.
- This applies only to things that mean something, not to pure decoration.
- You can check it yourself in five minutes.
The rule in one sentence
The rule is WCAG 1.4.1 (Level A). The WCAG are the international guidelines for accessible websites. The wording: colour must not be the only visual means of conveying information, indicating an action, prompting a response or distinguishing one element from another.
It does not say colour is forbidden. It says something else has to stand beside the colour:
- Red and a cross.
- Green and a tick.
- The blue line and a label at its end.
A state in which the viewer needs the colour to understand is called colour-dependent. The goal is colour-independent, and that can very well be colourful.
Only elements that mean something are meant. A background that is just pretty is not included.
Who it matters for
The circle is larger than most people assume:
- People with colour vision deficiency. The most common form affects red and green, according to the American National Eye Institute (NEI) the most common kind there is. It is exactly the pair people like to work with. For some the colours can be confused, for others they cannot be told apart at all.
- People with limited sight. The W3C names people with partial sight and many older users who see colours less well. Add users of screens and browsers with few colours or only black and white.
- Everybody in bad light. A phone display in the sun shows very pale colours.
- Everybody with a badly set screen.
- Everybody who prints something. A chart whose lines differ only by colour is unreadable in black and white.
The last groups are not fringe groups. That is everyone, occasionally. That is how I see it.
Where it almost always happens
Form errors. The field gets a red frame, and that is the whole feedback. Whoever does not see the frame searches. Whoever has the page read aloud learns nothing at all. A frame is not read out.
The error must be there as text, near the field. WCAG 3.3.1 (Level A) requires this: a detected input error is named and described in text. The W3C explicitly says colour or a symbol in addition is allowed. The red frame may come on top.
Required fields. They are often marked by a colour or an asterisk without explanation. An asterisk is better than colour alone, but only information if it says somewhere what it means.
Availability indicators. A green and a red dot. Without a word next to it, it is a guess.
Charts. The classic case. The legend is on the left, the colours on the right, and the matching works only through colour. The fix: label the lines directly, use different line thicknesses or patterns, and set dots in different shapes.
Links in running text. Almost nobody thinks of this. The W3C writes: a link styled exactly like the text around it does not fail 1.4.1, because there is then no colour difference. But it is hard to recognise, and that harms everyone. If a link differs only by its colour, the W3C advises a contrast ratio of at least 3:1 to the surrounding text (technique G183) or a second cue. The underline that many remove for design reasons is exactly this second cue. The colour of an already visited link, by contrast, is not your job, says the W3C. The browser controls it.
States of buttons. A greyed-out button that cannot be clicked. How do you tell, if you cannot see the difference between this grey and the normal state?
How to check your own site
It costs minutes, and there are three ways.
The grey-scale test. Take a screenshot and convert it to black and white. Any image editor and any phone can do that. At each coloured spot ask: do I still know what this means? This is the toughest test. Whoever passes it is on the safe side.
The simulation in the browser. With Chrome’s developer tools you can imitate vision deficiencies: press F12, choose “Rendering” in the menu, then “Emulate vision deficiencies”. You see the page the way it arrives with that perception. That convinces more than any explanation.
The test without a tool. Describe to somebody over the phone what is on your page without using a colour word. Where you stumble is a finding.
What you can do
You cannot make a project out of this. It is a walk-through with a single question.
- Go through the places where your page communicates something: form errors, status indicators, charts, links in text and states of buttons.
- Ask at each: what is here besides the colour?
- If nothing, add a second cue: a word, a symbol, an underline, a pattern or a label.
The colour stays. It just gets company.
Why this is here
Of all the points that make a website more accessible, this is one of the cheapest. It needs no rebuild, no extra technology and no expert knowledge. It needs someone to look once.
It is often missed anyway because it looks good in the design. Colour coding is elegant, and writing a word next to it feels like a step back. It is not. It is the difference between information and a guess.
Sources
- W3C, Understanding SC 1.4.1: Use of Color — the wording of the rule, examples, links without colour difference, technique G183 with 3:1 for links in text, the colour of visited links: w3.org(external site: w3.org)
- W3C, Understanding SC 3.3.1: Error Identification — the error is described in text; colour or a symbol is allowed in addition: w3.org(external site: w3.org)
- National Eye Institute, Types of Color Vision Deficiency — red-green deficiency as the most common kind: nei.nih.gov(external site: nei.nih.gov)
- Chrome for Developers, Emulate vision deficiencies — imitating vision deficiencies in the developer tools: developer.chrome.com(external site: developer.chrome.com)
- Own testing practice — the list of places where it happens most, the grey-scale test, the phone test without colour words, greyed-out buttons.