Colour-blind-safe chart colours, with a palette
Do not rely on colour alone. Vary lightness as well as hue, keep categories to five or six, use grey for context, avoid red next to green and add direct labels. A six-colour palette with contrast figures is included.
Updated · 4 min read
The short answer
Never let colour do the whole job. Vary lightness as well as hue, keep categories to five or six, use grey for everything that is only context, avoid red next to green, and add labels so the chart still works if the colours do not. A palette you can copy is further down.
Why this matters
Red-green is the most common type of colour vision deficiency. The US National Eye Institute says about 1 in 12 men have a colour vision deficiency, and that men are at much higher risk than women. That is a sizeable share of any audience.
The Web Content Accessibility Guidelines say the same in general form: colour should not be the only visual means of conveying information. A label, a pattern or a line style next to the colour keeps the chart readable.
Don't pair red and green
The "red is bad, green is good" pair is the classic failure. Two bars, one red, one green, and a legend: fine for some readers, a guessing game for others. Use blue and orange instead.
Vary lightness, not only hue
Hue is what we think of as colour, but lightness is what separates shapes for most people. Two colours of the same lightness can blur together even when they look very different on your screen. A quick check is to view the chart in greyscale. If you can still tell the series apart, the palette is working.
One ramp for ordered data, distinct hues for categories
When data has an order (low to high, mild to severe), use one hue and change how dark it is. A rainbow gives readers no way to know whether orange is "more" than green.
For categories, which have no order, use clearly different hues, but keep to about five or six. After that readers cannot match colours to a legend. Group the small ones into "other" or split the chart.
Grey for context, one colour to highlight
Anything that is only there for context can go grey. In a bar chart, give the one bar that matters a strong colour and the rest a mid grey. Two or three highlights and nothing stands out any more.
One strong colour and grey: the reader sees the Midlands first
Sales by region, £m
Midlands is the largest at 4.80, ahead of London (3.60). Wales is the smallest at 2.20.
Source: Sample data
| Region | Sales |
|---|---|
| North | 3.10 |
| Midlands | 4.80 |
| London | 3.60 |
| South West | 2.90 |
| Wales | 2.20 |
| Scotland | 3 |
A palette to copy
These six come from the Okabe-Ito palette, devised by Masataka Okabe and Kei Ito as a colour-blind-friendly set and listed in full (with black and yellow) on NYU's Siegal lab page. The contrast figures are our own calculation of WCAG contrast ratios against white and against a near-black (#1A1A1A).
| Use | Hex | Against white | Against #1A1A1A |
|---|---|---|---|
| Blue | #0072B2 |
5.2 | 3.4 |
| Orange | #E69F00 |
2.3 | 7.7 |
| Bluish green | #009E73 |
3.4 | 5.1 |
| Sky blue | #56B4E9 |
2.3 | 7.5 |
| Vermilion | #D55E00 |
3.9 | 4.5 |
| Reddish purple | #CC79A7 |
3.1 | 5.7 |
| Context grey | #767676 |
4.5 | 3.8 |
How to use it:
- WCAG asks for at least 3:1 between graphics needed to understand the content and the colours next to them. On a white background, orange and sky blue fall short. Use them on a dark background, or add direct labels and an outline.
- The palette's yellow (
#F0E442) is left out because it has only 1.3:1 against white. - Text still needs more than graphics do. Put labels in dark ink, not in the series colour.
- Pairs that sit closest in perceived colour are orange with vermilion and vermilion with purple (measured as Oklab distance). Avoid putting those next to each other when you can.
Back it up with labels and position
Direct labels are the best fix: put the name beside the line or on the bar and the legend becomes nearly unnecessary. Line style (solid, dashed, dotted) helps in line charts, and sorting bars by size or keeping series in the same order every time lets readers find things without colour at all.
Direct labels and line style tell series apart without colour
Monthly orders by channel
Web rose 51% from 120 to 181 between Jan and Jun. Of 3 series, Web ended highest (181) and Phone lowest (35).
- Web
- Shop
- Phone
Source: Sample data
| Month | Web | Shop | Phone |
|---|---|---|---|
| Jan | 120 | 90 | 40 |
| Feb | 132 | 88 | 44 |
| Mar | 141 | 95 | 41 |
| Apr | 158 | 93 | 39 |
| May | 170 | 99 | 36 |
| Jun | 181 | 97 | 35 |
Pie charts
Pie charts need all of this more than most, because slices are hard to compare. Keep to few slices, order them largest to smallest and label each one with its name and value. If you need a legend and eight colours, a bar chart will do the job better.
Test before you publish
Run the chart through a colour-vision simulator or an image editor's greyscale filter. It takes a minute. Then generate a starting set with the chart colour palette generator, or paste your table into the editor at /new (no account) and get a finished chart as a live embed, PNG or SVG. More on picking the chart itself: best chart for comparison.
Questions
- What colours are safe for colour blindness?
- Blue and orange are a safe pairing, and the Okabe-Ito palette was devised to be colour-blind friendly. Whatever you pick, add labels so colour is not the only cue.
- How many colours should a chart use?
- About five or six for categories. Beyond that, group small categories into "other", split the chart, or grey out the rest.
- What is a good colour palette for a bar chart?
- One strong colour for the bar that matters and a mid grey for the rest, or a single hue in different darkness for ordered data.
- How do I check my chart for colour blindness?
- View it in greyscale, or run it through a colour-vision simulator, before you publish.