Color in Charts
Overview
Color in charts is about using as little color as possible to say as much as possible. A chart with one highlighted series and a neutral rest makes its point at a glance; a chart with a different hue per bar asks the reader to decode a legend first.
Why It Matters
About one in twelve men and one in two hundred women have a color vision deficiency, and almost everyone views some charts in poor light, on a projector or in print. A chart whose meaning lives only in the difference between red and green fails all of those readers. Restrained color also reads faster for everyone else, because the eye goes straight to the one thing that is different.
Core Principles
- Neutral for context, accent for the point. Draw most of the chart in a muted gray and give one series, the one the chart is about, the accent color. The highlight is the message.
- Hue for categories, lightness for amounts. Different hues tell series apart; a single hue from light to dark shows more or less. Mixing the two, like a rainbow for a quantity, has no natural order.
- Never rely on hue alone. Label series directly at the end of the line or on the bar, or add a pattern or shape, so the chart still reads in grayscale (WCAG 1.4.1).
- Keep marks visible against the background. Bars, lines and points need 3:1 contrast against the chart background (WCAG 1.4.11), and text labels need 4.5:1, in both light and dark mode.
- Keep meanings stable. If green means this year on one chart, it means this year on every chart in the dashboard, and status colors (red, amber, green) mean only status.
Interactive Demo
Orders by region, June
Common Mistakes
- Giving every bar its own color when the bars are already labelled on the axis, so color carries no information but still competes for attention.
- Showing good and bad only as green and red, with no label, icon or position to tell them apart.
- Using a rainbow scale for a single quantity, where yellow looks larger than both its neighbors.
- Choosing chart colors on a light background and never checking them in dark mode, where a dark blue line disappears.
Related Concepts
- Color and Contrast: the same contrast thresholds apply to chart marks and labels.
- Choosing the Right Chart: color cannot rescue a chart whose form does not fit the question.
- Accessibility and WCAG Basics: use of color (1.4.1) and non-text contrast (1.4.11) are the two criteria charts most often fail.
- Template Interface Color Standard: its data visualization roles follow the same rule, with status colors used only for status and every pairing measured.
Used In Templates
Demonstrated directly in the Internal Dashboard and Admin Panel template.
Summary
Color in a chart should carry one message. Keep the context neutral, give the point one accent, label series directly so nothing depends on hue alone, and check that every mark and label has enough contrast in both modes.