Color Accessibility
Around one in twelve men has a colour vision deficiency, so colour has to be reinforced by something else.
Definition
Designing colour so that information remains available to people with colour vision deficiencies, low vision, or viewing conditions that degrade colour. It combines contrast requirements with the rule that colour must never be the only carrier of meaning.
Established research. Originates in published research and has been replicated. The effect is real. Its size in your product still needs measuring.
On this plate
Reach for this when
- Any use of colour to convey state or category.
- Building charts and data displays.
- Reviewing a design for accessibility.
- Any state, status or category is being communicated by colour.
Common mistakes
- Red and green as the sole distinction.
- Colour-only required-field markers.
- Legends that require colour matching.
Types of colour vision deficiency
| Type | Effect | Approximate prevalence |
|---|---|---|
| Deuteranomaly and deuteranopia | Reduced or absent green perception | Most common. Around 6 percent of men. |
| Protanomaly and protanopia | Reduced or absent red perception | Around 2 percent of men. |
| Tritanomaly and tritanopia | Blue and yellow confusion | Rare, under 0.01 percent, and not sex-linked. |
| Achromatopsia | No colour perception | Very rare, roughly 1 in 30,000. |
Practical rules
- Pair every colour signal with a shape, icon, label or pattern.
- Use lightness difference as well as hue difference between any two colours that must be distinguished.
- Avoid red and green as the only distinction between two states, which is the most common failure.
- Test in greyscale, which catches most of these problems in seconds.
- For charts, use direct labelling rather than a colour legend wherever the layout allows.
- Do not rely on colour to indicate required fields or errors.
Colour-only meaning, and what to add
| Where colour alone is used | Add |
|---|---|
| Required fields marked in red | A label or an asterisk with a legend |
| Valid and invalid inputs | An icon and a message |
| Chart series | Direct labels, or pattern and shape |
| Status dots | Text beside the dot, or a distinct shape per status |
| Selected items | A tick, a border, or a state label |
| Links in body text | An underline |
| Diff and change highlighting | A marker character, or a border style |
In practice
- i.
Validation without colour
FormsAn error state marked by red border alone is invisible to some users. Adding an icon and text makes it available to everyone, and it is what WCAG requires anyway.
- ii.
Directly labelled charts
Data visualisationLabelling series at the end of each line removes the colour matching task entirely, which helps every reader and not only those with colour vision deficiency.
- iii.
The greyscale screenshot test
A check anyone can runTake a screenshot, remove the colour, and read it. Everything still distinguishable is safe. Everything that has collapsed was relying on hue, and that is the list to fix.
Local chart
FND·028 · Region II · Grid C2
This entry and the entries it is stated to connect with. Each line is labelled with what the connection means.
Sources
Where a source establishes something narrower than the popular reading of it, the note says so.
- [1]
Understanding Success Criterion 1.4.1: Use of Color
W3C, WCAG 2.1
- [2]
Colour Blind Awareness prevalence figures
Colour Blind Awareness
Source of the commonly cited 1 in 12 men and 1 in 200 women figures.
Continue from here
Each link says what the connection is, so you can tell a principle from an alternative from a thing people mix this up with.
Applies when you are designing
Principles behind this
The reasoning this solution is an application of.
- Von Restorff EffectLAW·009 · Law
Check your work
Review passes that test whether this was done properly.
- Accessibility ChecklistCHK·002 · Checklist
Short definition
The one-paragraph version, for when that is all you need.
- Colour Vision DeficiencyTERM·081 · Term
- Contrast RatioTERM·057 · Term
Related concept
Connected closely enough to change how you apply this.
- Use of ColorA11Y·010 · Accessibility
- ThemingSYS·008 · Design system
- Color SystemsFND·026 · UI foundation
- Color Theory for InterfacesFND·019 · UI foundation
- ContrastFND·002 · UI foundation
- Dark ModeFND·027 · UI foundation
- Data Visualization ColorFND·029 · UI foundation
- HueFND·020 · UI foundation
- IconographyFND·050 · UI foundation
- LightnessFND·022 · UI foundation
- Semantic ColorFND·023 · UI foundation
- Visual HierarchyFND·001 · UI foundation
- Error MessagesWRT·002 · UX writing