Use of Color
Colour may reinforce meaning but must never be the only thing carrying it.
Definition
WCAG 1.4.1 requires that colour is not used as the only visual means of conveying information, indicating an action, prompting a response or distinguishing a visual element.
Craft convention. True because the industry converged on it. Breaking it costs familiarity, not correctness.
On this plate
Reach for this when
- Any use of colour to convey state, category or meaning.
- Reviewing charts and data displays.
Common mistakes
- Validation marked by colour only.
- Colour-coded categories with no labels.
- Selected states shown only by tint.
Common failures and their fixes
| Failure | Fix |
|---|---|
| Red border marks an invalid field | Add an icon and a text message. |
| Required fields shown in red | Add an asterisk with a legend, or the word required. |
| Links distinguished only by colour | Underline them. |
| Chart series distinguished only by hue | Add direct labels, patterns or varied line styles. |
| Status shown only by a coloured dot | Add a text label. |
| Selected state shown only by a background tint | Add a check mark, a border or bold weight. |
What to pair colour with
Colour is a good second channel and a poor only channel. One of these alongside it is usually enough.
- Text, which is the most reliable: the word Overdue beside the red dot.
- An icon with a distinct silhouette, not just a coloured circle. Shape survives desaturation and low vision.
- Position, such as a status column that is always in the same place.
- A pattern or line style, which is how a chart stays readable printed or in greyscale.
- Weight or border, for selected states, so the selection is visible without the tint.
- An underline, for links inside body text, where colour alone is the classic failure.
Using colour as a second channel
Do
- Keep the meaning readable with every colour removed, then add colour back to make it faster.
- Use the same pairing throughout: if error is red plus an icon plus text once, it is that everywhere.
- Check both themes, since a tint that carries meaning in light mode often disappears in dark.
- Give charts direct labels, which removes the legend and the colour-matching task at once.
Do not
- Do not use red and green as the only difference between two states.
- Do not mark required fields, validation state or availability with colour alone.
- Do not rely on a coloured border, which is thin, easy to miss and frequently below contrast requirements.
- Do not assume a colour blindness simulator is enough. The greyscale test catches more, faster.
Commonly confused with
Close neighbours that get substituted for each other. The difference is stated first, then the condition that picks one over the other.
Contrast
UI foundationThe measured luminance ratio between foreground and background.
Key difference
Contrast is a measurable ratio between two colours. Use of colour is whether the meaning survives when the colour does not, which a perfectly contrasting pair can still fail.
Use Use of Color when
- Red and green are the difference between two states.
- A chart, status or required field relies on hue alone.
- The fix is an icon, a label or a pattern, not a darker shade.
Use Contrast when
- The question is whether text or a boundary can be seen at all.
- You need a number to check against 4.5:1 or 3:1.
- The fix is a lightness change.
Local chart
A11Y·010 · Region V · Grid A4
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
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
Relied on by
Entries that assume this is already in place.
- Alert and Inline MessageCMP·015 · Component
- Badge and TagCMP·023 · Component
- LinkCMP·002 · Component
- StepperCMP·029 · Component
- Toggle SwitchCMP·007 · Component
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
- Semantic ColorTERM·066 · Term
Related concept
Connected closely enough to change how you apply this.
- WCAG in PracticeA11Y·001 · Accessibility
- Von Restorff EffectLAW·009 · Law
- Affordances and SignifiersPRIN·007 · Principle
- Color AccessibilityFND·028 · UI foundation
- Data Visualization ColorFND·029 · UI foundation
- EmphasisFND·018 · UI foundation
- HueFND·020 · UI foundation
- Semantic ColorFND·023 · UI foundation
- Error MessagesWRT·002 · UX writing