Red means bad and green means good. Almost every dashboard uses that code, and it fails for the many people who cannot tell the two apart. Red/green colour vision deficiency is common, and a dashboard that encodes status in that pair alone hides its most important signal from a real share of its audience.
This article is the set of rules I use when I design dashboards. They are not exotic, and they make the dashboard better for everyone, including people on a washed-out screen in bright light.
Never encode status by colour alone
This is the rule that matters most. If a status is communicated only by hue, someone will miss it. Pair every colour with a second channel: a glyph, a label, a shape or a position.
I use four glyphs for status, with the meaning in the character itself:
| Glyph | Meaning | Colour role |
|---|---|---|
| ✓ | OK, passed | Teal |
| ! | Warning, needs attention | Amber |
| ✗ | Error, failed | Vermillion |
| ? | Unknown, no data | Neutral |
Even in greyscale, the dashboard reads correctly. The colour is a reinforcement, not the message. The same principle applies to chart series: use different line styles, markers or direct labels, not just different colours in a legend.
Choose a palette that survives
Do not use the red/green pair. Choose hues that differ in both lightness and hue, and that stay distinguishable under the common types of colour vision deficiency. The set I use: teal, vermillion, indigo, amber and magenta, plus slate for neutral.
- Teal instead of green for good. It sits on the blue side, so it separates from red-ish hues.
- Vermillion instead of red for bad. It stays a warm orange-red.
- Indigo and magenta for categories. They are far apart in both hue and lightness.
- Amber for caution, clearly lighter than the others.
Define them as design tokens (a named variable for each role), never as hex values scattered across components. When a palette needs to change, it changes in one place, and you can test the whole set at once.
Never a red-to-green ramp
Diverging scales from red through yellow to green are the classic trap, used for ratings, moods and performance scores. For a person with red/green deficiency, the two ends can look nearly the same and the middle looks like mud.
Use a scale that changes in lightness along its length, so order is readable even without hue. For a mood or rating scale with five levels, I use five distinct hues, ordered by lightness, with a label or glyph on each, instead of a ramp. For ordered numeric data, a single-hue ramp from light to dark works well and is easy to read.
Contrast still applies
Colour vision is one axis. Contrast is another, and it affects everyone.
- Text against its background needs at least 4.5:1 for normal text and 3:1 for large text, per WCAG.
- Non-text elements, such as chart lines, icons and borders that carry meaning, need at least 3:1 against what is behind them.
- A coloured tag with coloured text needs a contrast check on the pair, not just on the page.
Check contrast with a tool, not by eye. Perception depends on your screen and your eyes.
Common traps
- Red and green lines on a chart that are told apart only by a legend.
- Status dots with no text next to them. A dot is a colour and nothing else.
- Green and red cell backgrounds in a table, where the only difference between a pass and a failure is the shade.
- Heat maps built on a red-to-green scale. Use a single-hue ramp instead.
- A colour used for two meanings in different parts of the product. Pick one meaning per colour and keep it everywhere.
- Relying on a screenshot in a design tool to judge it. Judge the live page, on a real screen, at the real size.
Most of these come from reaching for the familiar traffic-light code without thinking. A short design rule, written once and enforced by tokens, removes the temptation.
How to test
- Simulate. Run the dashboard through colour vision deficiency simulation for protanopia, deuteranopia and tritanopia. Browser developer tools include emulation, and there are standalone simulators. Look for any pair of meanings that now look the same.
- Greyscale. Remove colour entirely. If you can still read every status, the glyphs and labels are doing their job.
- Contrast. Run each text and chart colour against its background and confirm the ratios.
- Real users. If anyone on your team or among your users has a colour vision deficiency, ask them to look. A simulation approximates; a person tells you.
Automate what you can. A script that checks token pairs against contrast thresholds in CI will catch the regression that a person would not notice in a pull request. The palette checker on this site lets you try a set of colours against the common simulations and contrast ratios.
Chart details that help
- Label lines directly instead of relying on a legend where you can.
- Vary marker shape or line dash between series that share a chart.
- Keep the number of categories low. Past five or six colours, no palette stays distinguishable.
- Show the value. A tooltip or a number removes the need to decode a colour at all.
The short version
Pair every colour with a glyph. Use teal, vermillion, indigo, amber and magenta instead of red and green. Never use a red-to-green ramp. Define colours as tokens, check contrast with a tool, simulate before you ship. A dashboard exists to tell people what is happening; it should do that for all of them.