Colour in charts: qualitative, sequential and diverging scales, and when to use none
TL;DR
Difficulty: Intermediate
Colour is the first thing people see on a chart and the weakest way to read an amount, so give it exactly one job.
- Name the job first: tell groups apart (qualitative scale), show an amount (sequential, light to dark), show distance from a midpoint (diverging, neutral middle), or point at one thing (one accent colour on grey).
- Keep groups to about five colours and label directly beyond that.
- Never use rainbow scales for amounts, and never let red against green be the only signal: about 8% of men of European descent have a red green colour deficiency.
- Every colour that carries data needs 3:1 contrast against its background (WCAG 2.1, 1.4.11).
- The phone call test: if you cannot explain the chart without naming a colour, it fails some of your readers.
What to read first
Most charts get their colours from software defaults and nobody can say what they mean. This chapter shows how to use colour on purpose: the four jobs colour can do, the scale each job needs, why rainbows and red against green mislead, and how to make every colour visible to every reader. One invented coffee roaster carries every idea, from 18 coffees in a rainbow to a margin chart that finally reads at first sight.
Colour is the first thing people see and the last thing people check
Open almost any business dashboard and count the colours. Most people find eight, ten, sometimes twenty, and when you ask what each colour means, the honest answer is often "the software picked it". Colour is the first thing a reader notices and the last thing the person making the chart thinks about. That mismatch is why so many charts look busy and say little.
This chapter is about using colour on purpose. It builds on the previous one, mapping data to visuals with scales, axes and coordinate systems, because colour is simply another scale: a rule that turns a number or a category into something the eye can see. Get the rule right and colour does real work. Get it wrong and it quietly tells the reader something false.
The chapter draws on Claus Wilke's three chapters on colour in Fundamentals of Data Visualization123, on Cole Nussbaumer Knaflic's treatment of colour as the strongest tool for directing attention in Storytelling with Data4, and on the colour science in the Handbook of Data Visualization, where Antony Unwin calls colour one of the most effective and most difficult tools to get right56. Around them sits the research on perception, palettes and accessibility.
The example business throughout is invented. Ridgeway Coffee is a speciality coffee roaster in Oxford (ridgewaycoffee.example) with £2.4 million in revenue a year: 45% from coffee subscriptions, 25% from one off online orders and 30% from wholesale to 140 cafés. Maya is the founder. Joe is the analyst who makes the charts. Maya's standing question is "Should we push Explorer harder, or is it costing us customers?", Explorer being the plan that sends a different coffee each time, against Usual, which sends the same coffee every time.
The one job test: name the job before you pick a colour
Here is the test I recommend before any colour goes on a chart, and the idea the rest of this chapter hangs on. Colour can do exactly four jobs in a chart, and a chart should give it one:
- Tell groups apart. Which bars belong to which region, which line is which plan. The categories have no order. This needs a qualitative scale.
- Show an amount. More sign ups, higher revenue, a busier month. The values run from low to high. This needs a sequential scale.
- Show distance from a midpoint. Above or below target, gain or loss, agree or disagree. The values run in two directions from a meaningful middle. This needs a diverging scale.
- Point at something. This bar, this month, this customer group, the one thing the reader should see first. This needs an accent colour against grey.
Wilke names the first, second and fourth as the three fundamental uses of colour and treats the diverging scale as a special case of representing values1. I split it out as its own job because in business charts it is the case people get wrong most often: targets, budgets and year on year changes all have a midpoint, and a plain sequential scale hides it.
The test is simple. Before you colour anything, finish this sentence in one word: "Colour in this chart is here to ..." Group, measure, diverge or point. If you need two words, you probably need two charts, or a second channel such as position or labels. If you cannot find any word at all, the chart needs no colour beyond one neutral tone, and that is a perfectly good outcome.
It works because each job needs a different kind of scale. A palette for groups deliberately avoids any sense of order, and a palette for amounts deliberately creates one. Swap them and the reader either cannot tell which colour is "more" or sees a ranking that does not exist.
Example: the one job test on Joe's subscription dashboard
Joe's monthly subscription dashboard at Ridgeway Coffee has four charts. He runs the test on each:
| Chart | What colour does now | The one job | Verdict |
|---|---|---|---|
| Active subscribers by plan, monthly line | Usual blue, Explorer orange | Group (two plans) | Keep, two colours for two groups |
| Churn by month, bar chart | Every bar a different colour | None | Make all bars one neutral colour |
| Sign ups by month across three years, grid | Rainbow from blue to red | Measure | Replace with a single hue scale, light to dark |
| Gross margin by month against target | Green bars and red bars | Diverge | Keep two directions, but change the colours and add signs |
One chart loses its colour completely, one changes the type of scale, one changes the colours, and one stays. Nothing about the data changed. Only the question of what colour is for.
Do you need colour at all?
The honest first answer is often no. Colour is a weak channel for reading amounts. In their classic experiments on graphical perception, William Cleveland and Robert McGill ranked how accurately people judge quantities from different visual encodings. Position along a common scale came first, then length, angle and slope, then area, and shading and colour saturation came near the bottom7. Jürgen Symanzik and Daniel Carr, writing in the Handbook about maps that colour regions by value, make the same point from another direction: we read colour relative to its neighbours and we extract precise values from a continuous colour scale poorly8.
So colour should rarely carry the main quantity on its own when position is available. A bar chart already shows amounts through length. Painting each bar a different colour adds nothing to the reading and takes attention away from the comparison. Stephen Few puts it as a rule: use colour only when it serves a particular communication goal, and use different colours only when they correspond to differences in meaning in the data9.
Colour earns its place when position is already used up, and in four common cases:
- a grid of months by years, where both axes are taken and the amount has to go somewhere
- a map, where position means geography
- a line chart with several series, where you need to tell the lines apart
- any chart where one element must be found first
The recommended path in the flow is the shortest one, and it is deliberate: in a chart made to make a point, the most common correct answer is one accent colour and grey.
Example: the churn bar chart loses its rainbow
Joe's churn chart shows the monthly churn rate for twelve months, one bar per month, each bar in a different colour from the software's default palette. Maya asked him once why March is purple. There is no reason. The colours encode nothing, yet a reader still tries to decode them, and the eye jumps to the most saturated bars rather than the highest ones.
Joe walks the flow. Does one element matter more than the rest? Not yet: the chart is a monthly monitor, not an argument. Do several groups need telling apart? No, there is only one series. Is position already used, so the amount needs colour? No, the bar length shows churn. The answer is one neutral colour. He sets every bar to a mid grey and the chart immediately reads as what it is: twelve comparable amounts. If he later wants to argue that the summer churn is the problem, he will add one accent colour for July and August, and only then.
How the eye reads colour: hue, lightness and chroma
To choose colours well you need three words. Hue is what most people mean by colour: red, orange, blue. Lightness (also called luminance or value) is how close the colour is to white or black. Chroma (closely related to saturation) is how vivid or grey the colour looks.
These three do different jobs, and that is the key to every rule that follows:
- Hue has no natural order. Nobody agrees whether green is more than blue. That makes hue right for groups and wrong for amounts.
- Lightness has a strong natural order. Darker reads as more, at least on a light background. That makes lightness right for amounts.
- Chroma draws the eye. Vivid colours pop out of muted ones. That makes chroma right for pointing.
The catch is that the colour systems in most software do not keep these three apart. David Meyer, Achim Zeileis and Kurt Hornik explain in the Handbook that the hue, saturation and value model behind most colour pickers is not perceptually uniform: two colours with the same nominal saturation and value but different hues can look very different in brightness, a fully saturated blue looks much darker than a fully saturated yellow or green, and palettes built that way give some categories more visual weight than others without anyone intending it6. They recommend building palettes in a perceptually based space, such as hue, chroma and luminance (HCL), where you can hold lightness constant and change only the hue, or change lightness steadily and hold the hue.
Stephen Few adds that perception is relative: the same grey looks lighter on a dark background than on a light one, so keep the background behind data consistent9. You do not need colour science to apply any of this, only two habits: check a palette in greyscale, which shows its lightness alone, and use palettes built in a perceptual space, such as ColorBrewer, viridis or the Okabe and Ito set.
Example: why Ridgeway's latte brown cannot carry an order
Ridgeway's brand uses a dark espresso brown (#4B2E2A) and a pale latte (#C8A27C). Joe's three step scale for small, medium and large wholesale accounts, latte, caramel and espresso, works because the steps differ in lightness. His second attempt, latte, terracotta and olive of similar lightness, turned into one grey in greyscale, and on screen nobody could say which colour meant large. Hue alone has no order.
Colour to tell groups apart: qualitative scales
A qualitative scale is a small set of colours that look clearly different from one another while none of them stands out or suggests a rank. Wilke describes both conditions: distinct, and equivalent, so that no colour shouts and no sequence of lighter and darker implies an order the categories do not have1.
Three practical rules follow.
Keep it to about five. Wilke's rule of thumb is that qualitative scales work best with three to five categories and become a burden somewhere around eight to ten, because the reader has to match each colour back to the legend2. The Office for National Statistics tells its analysts to use five colours or fewer and to group small categories into larger ones or show fewer series to get there10. The limit is not about whether the eye can tell ten colours apart in principle. It is about memory: each extra colour adds another pairing the reader has to hold while looking back and forth.
Label directly when you have more. Past about eight items, Wilke recommends dropping colour for identity and placing text labels next to the data instead2.
Use a palette built for the job. The Okabe and Ito palette, ColorBrewer's qualitative sets and similar palettes were designed so that the colours are distinct, balanced and, in the case of Okabe and Ito, still distinguishable for people with the common forms of colour vision deficiency111213.
Example: Ridgeway's 18 coffees, coloured badly and then well
Ridgeway sells 18 coffees. Three of them, the house blend, the Colombian and the Ethiopian, account for 61% of repeat orders. Joe's first chart of repeat orders by coffee gave each coffee its own colour, 18 hues from the software default, with a legend of 18 entries beside the chart.
Here is what that chart asked of the reader. To find the Ethiopian, look at the legend, find "Ethiopia", remember its colour (a teal, very close to the teal of Kenya and the green of Rwanda), go back to the chart, scan 18 bars for that teal, decide between three similar teals. Repeat for every coffee. The chart had become a puzzle, which is exactly the failure Wilke describes for too many categorical colours2. And the colours carried no information the bar labels could not.
Joe then asked the one job question. What should colour do here? There are two honest answers, depending on Maya's question.
If the question is "which origins bring customers back?", the job is to group, and the groups are the five origin regions Ridgeway buys from. The regional split below is derived for the example:
| Origin region (derived) | Coffees | Share of repeat orders |
|---|---|---|
| Blends | House blend, Espresso blend, Decaf blend | 33% |
| South America | Colombia, Brazil, Peru, Bolivia | 28% |
| East Africa | Ethiopia, Kenya, Rwanda, Burundi | 24% |
| Central America | Guatemala, Costa Rica, Honduras, El Salvador | 11% |
| Asia and Pacific | Sumatra, Papua New Guinea, India | 4% |
Five groups is inside the comfortable range, so the second version colours the 18 bars by region with five colours from the Okabe and Ito palette, sorts the bars from largest to smallest share, and labels each bar with the coffee's name directly at the axis. No colour has to identify a coffee any more, the label does that. Colour only answers "which region?", and a reader can see at a glance that the blends and South America dominate the top while Asia and Pacific sits at the bottom.
If the question is "which coffees matter most?", the job is to point, and the right chart has no qualitative palette at all. That version is in the highlighting section below. Same data, two questions, two colour jobs, two charts.
Colour to show amounts: sequential scales
A sequential scale turns a number into a colour so that more looks like more. Wilke sets two conditions: the colours must clearly show which values are larger, and the steps between colours must look roughly as big as the steps between values, which means the scale has to change uniformly in perception across its whole range1.
There are two families. Single hue scales run from a light to a dark version of one colour, such as light blue to dark blue. Multihue scales also change hue along the way, for example from dark blue through green to light yellow in viridis. Wilke notes that good multihue scales tend to follow colour gradients that occur in nature, dark to light, and that the reverse direction looks unnatural1. Few's version of the rule is to stay with one hue, or a few closely related hues, and run from pale for low values to darker for high9.
Which way should dark go? On a light background people tend to read darker as more. Karen Schloss and colleagues call this the dark is more bias. Their experiments also found that when a colour scale appears to vary in opacity, people read the more opaque end as more, and that on dark backgrounds the two biases can pull against each other14. The practical lesson for anyone with a dark mode dashboard: on a light background put high values at the dark end, and if your charts also appear on a dark background, test them there instead of assuming the scale still reads the right way round.
Sequential scales are what you need when position is already taken, as in a calendar grid.
Example: three years of sign ups in a grid
Maya wants to see the seasonality of subscription sign ups across three years at once. Joe builds a grid: one row per year, one column per month, each cell coloured by sign ups. Position is used up by year and month, so the amount has to go into colour. This is exactly the case for a sequential scale.
To compare months fairly across years with different overall growth, Joe first turns each month into an index against that year's monthly average (Foundations: indexing and base rates):
where is the index for month , is the number of sign ups in month , and is the average number of sign ups per month in that year. An index of 1.0 is an average month.
At Ridgeway, December sign ups are 2.6 times the monthly average because of gifts, and July and August run 30% below average. In 2024, if the year averaged 500 sign ups a month, December brought
and July brought . The full year of indices for the example is: January 1.1, February 0.9, March 0.85, April 0.8, May 0.75, June 0.75, July 0.7, August 0.7, September 0.8, October 0.85, November 1.2, December 2.6. They add up to 12, as twelve monthly indices against their own average must.
Joe colours the grid with a seven step single hue blue scale from ColorBrewer, from the palest blue (#eff3ff) for the lowest index to the darkest (#084594) for the highest13. December is unmistakably the darkest column every year. The summer dip shows as the palest. Because December is so far above the rest, he caps the scale at 1.5 and labels the December cells with their actual index, so the other eleven months still use the full range of the scale instead of being squeezed into the pale end. That is a scale decision from the previous chapter, made visible through colour.
Why rainbow scales mislead
The rainbow scale, which runs through the spectrum from blue through green and yellow to red, is still the default in some tools and the favourite of many dashboards. It fails both of Wilke's conditions. It does not get steadily lighter or darker: converted to grey, it goes from medium dark to light to very dark and back, with long stretches where lightness barely changes and short stretches where it changes fast2. The result is that the eye sees boundaries where the data has none, usually at the bright yellow band, and misses real differences inside the long green and cyan stretch.
The criticism is old and well documented. David Borland and Russell Taylor argued in 2007 that the rainbow colour map was still harmful despite years of warnings, because it has no perceptual ordering, hides detail and invents edges15. Yang Liu and Jeffrey Heer tested colour scales experimentally in 2018: well designed single hue and multihue scales both supported accurate judgements, multihue scales gave better resolution over small ranges, and a plain rainbow scale performed worst of all the scales they tested16. Fabio Crameri, Grace Shephard and Philip Heron, writing for a general scientific audience in 2020, list rainbow and red green colour maps as the main ways colour still distorts data and excludes readers with colour vision deficiency17.
The replacement most people now meet is viridis. Nathaniel Smith and Stéfan van der Walt designed it in 2015 as the new default colour map for the Python plotting library matplotlib, with three explicit goals. It should be perceptually uniform, so equal steps in data look like equal steps in colour. It should work for the common forms of colour vision deficiency. And it should stay uniform when printed in greyscale18. It runs from dark blue through green to yellow, so it is a multihue scale that also climbs steadily in lightness, which is what the rainbow fails to do.
Example: the rainbow version of the sign up grid
Before Joe switched to blue, the grid used the tool's rainbow default. Three things went wrong, and each one would have led Maya to a wrong conclusion.
First, the colour boundary between green and yellow fell at an index of about 0.9, so February and October jumped out as a distinct "yellow season" although they differ from their neighbours by only 0.05. Second, the long cyan to green stretch swallowed the spring decline from 1.1 to 0.75, which is real and worth seeing, into one band of similar greens. Third, the darkest colours in the rainbow sit at both ends, deep blue and deep red, so in greyscale the lowest months (July and August) and the highest month (December) looked equally dark and the scale lost its direction entirely. A single hue scale has none of these problems because lightness, the channel we read order from, changes evenly from one end to the other.
Colour to show distance from a midpoint: diverging scales
Some numbers only make sense relative to a middle: above or below target, profit or loss, growth or decline, agree or disagree. For these, Wilke describes the diverging scale as two sequential scales joined at a shared midpoint, usually a light neutral colour, with darker colours further out in each direction1.
Three rules make diverging scales honest:
- The midpoint must mean something. Zero change, the target, 50%, the national average. If there is no natural middle, use a sequential scale.
- The two sides must be balanced. The step from light to dark must be about the same in both directions. Otherwise a value of plus one looks bigger or smaller than minus one, depending on which side gets the stronger colour1. Meyer, Zeileis and Hornik show the same problem from the colour science side: a red to blue palette built in the hue, saturation and value model makes the red side look more intense than the blue, while a palette built in HCL balances matching steps on both sides to the same grey6.
- The limits must be symmetric. If the data runs from minus 1.4 to plus 1.1, set the scale from minus 1.5 to plus 1.5, so the same colour strength means the same distance on both sides.
When the diverging scale is only two colours on bars, it is often clearer to let position do the magnitude and colour do only the direction, which is what the next example does.
Example: Ridgeway's monthly gross margin against target
Ridgeway's gross margin for the year is 48%, which is also Maya's target. Month by month, it moves around the target. The deviation is measured in percentage points, not as a percentage change (Foundations: percentages):
where is the deviation in month , is that month's gross margin as a percentage, and is the target, here 48%. A month at 49.1% has points. A month at 46.6% has , which is 1.4 points below target.
For the example, the twelve months of 2024 deviate as follows: January 1.2 below, February 0.6 below, March 0.4 above, April 0.9 above, May 1.1 above, June 0.3 above, July 0.8 below, August 1.4 below, September 0.2 above, October 0.7 above, November 0.5 above, December 0.1 below. The twelve deviations add up to zero, so the simple monthly average sits exactly on target, consistent with 48% for the year.
Joe's original chart showed this with green bars for above and red bars for below. Two problems. About one man in twelve would struggle to tell those two colours apart (more on that below), and the chart asked the reader to look at twelve bars equally. The rebuilt chart puts the bars on either side of a zero line, so position already says above or below and length says how far. Colour now only answers the question Maya cares about, which months fell short, and highlights those five in the accent colour while the months above target stay muted. A reader without colour vision still gets the full story from the zero line, and the labels carry the sign.
For a grid of the three channels by twelve months, position would be used up and colour would carry the deviation. Then Joe would use a proper diverging scale, for example ColorBrewer's seven step purple to orange (#b35806, #f1a340, #fee0b6, #f7f7f7, #d8daeb, #998ec3, #542788), with the near white middle step at zero and symmetric limits of 1.5 points either side13.
Colour to point: one accent and a lot of grey
The most useful colour in business charts is often grey. Knaflic's approach is to design in shades of grey and add one bold colour only where she wants the audience to look, with grey rather than black as the base because colour stands out more against grey4. Wilke calls the same idea an accent scale: subdued base colours plus a few stronger ones, and he warns that the most common mistake is base colours that are themselves too colourful, so they compete with the accent. His remedy is to remove colour from everything except the highlighted elements1.
Why does this work so well? Because chroma is preattentive: as the chapter on how people read charts explained, the eye finds a single vivid item among muted ones before the reader has decided to look for it. Knaflic's image is a hawk among pigeons: easy to spot alone, harder as the sky fills with other kinds of birds4. Every additional colour is another kind of bird.
Knaflic also gives a quick check that I recommend to everyone: make the chart, look away, look back, and note where your eyes land first. If they land anywhere other than the point you want to make, the colour is in the wrong place4.
Tufte, drawing on the Swiss cartographer Eduard Imhof in the chapter on colour in Envisioning Information, gives the same advice in its oldest form: strong, bright colours belong on small areas, and large areas need muted, quiet colours, because large areas of strong colour overwhelm everything around them19. Wilke repeats it for charts: avoid large filled areas of overly saturated colour, because they make the figure hard to look at and hard to inspect2.
Example: the three coffees that bring customers back
Maya's question this time is which coffees matter most for repeat orders. The colour job is to point. Joe sorts the 18 coffees by share of repeat orders, colours all of them a mid grey, and gives the three leaders the accent colour.
The eye goes straight to three bars and reads them as one group, which is the point: three coffees, 61% of repeat orders. Compare that with the 18 colour version. Same numbers, same bars, but where the rainbow version asked the reader to solve a matching puzzle, this version answers the question before the reader has read the title. Joe's title says it in words as well: "Three coffees bring back three in five repeat orders".
Designing for colour vision deficiency
Colour vision deficiency, often called colour blindness, is common. In a review of large population surveys, Jennifer Birch found that inherited red green colour deficiency affects about 8% of men and about 0.4% of women of European descent20. Knaflic quotes roughly the same figures4. Put in Ridgeway's terms: if Maya presents to a wholesale buyers' meeting of 25 men and 25 women, on average about two people in the room see her red and green chart quite differently from how she does.
People with colour vision deficiency do see colour. They confuse particular pairs. Wilke explains the main types: the common red green forms (deuteranomaly and protanomaly, and the stronger deuteranopia and protanopia), where reds and greens become hard to tell apart, and the rare blue yellow form (tritanomaly), where blues and greens merge2. He also notes that sequential scales which run steadily from dark to light generally survive all forms, because lightness still carries the order. The trouble is concentrated in diverging and qualitative palettes, and in small marks: colours are much harder to tell apart on thin lines and small points than on large areas, and more so with a colour vision deficiency2.
What to do:
- Do not make red and green the only difference. Few makes this one of his rules9. If you want the connotation of red for bad and green for good, add a second cue: a plus or minus sign, bold text, a different lightness. Knaflic suggests blue for positive and orange for negative as a pairing that keeps the meaning and avoids the problem4.
- Use palettes designed for it. Masataka Okabe and Kei Ito, both of whom describe themselves as strong protanopes, published a palette and a set of design rules for figures that work for colour blind readers11. Their eight colours are black, orange (
#E69F00), sky blue (#56B4E9), bluish green (#009E73), yellow (#F0E442), blue (#0072B2), vermilion (#D55E00) and reddish purple (#CC79A7), and Wilke uses them as the default palette throughout his book2. Wilke also shows that ColorBrewer's pink to yellow green diverging palette looks like red against green to most people and still works under all forms of colour vision deficiency, because the pink contains blue and the green contains yellow2. - Test, do not assume. Wilke's advice is to run every figure through a colour vision deficiency simulator, because even a safe palette can fail when the marks are small2. Knaflic lists several free simulators4.
My test for this, which I find catches more problems than any simulator, is the phone call test: could you explain the chart to someone on the phone without naming a single colour? "The highlighted bars are the three coffees above 10%" passes. "The teal one is Ethiopia" fails, for a colour blind reader, for a reader on a black and white printout, for a screen reader user, and for the person on the phone. Every reader who cannot use your colours is, for that chart, on the phone.
Example: the wholesale traffic light that half the room could not read
Ridgeway's wholesale dashboard shows the 140 cafés with a traffic light each: green if the café ordered in the last two weeks, amber if it is overdue, red if it has not ordered in six weeks. The sales lead, one of the roughly 8% of men with a red green deficiency, had for months been calling the wrong cafés: amber and green looked almost the same to him, and red only slightly darker.
Joe applies the three fixes. First, he replaces the colour only status with a symbol plus a word: a filled circle and "on track", a half circle and "overdue", an empty circle and "lapsed". Second, he recolours the symbols from the Okabe and Ito palette: blue for on track, orange for overdue, vermilion for lapsed. Third, he sorts the list so the lapsed cafés come first, because the job of colour here was always to point at the cafés that need a call. The phone call test now passes: "the lapsed cafés at the top of the list" works over the phone. The sales lead stops calling the wrong cafés.
Redundant coding and direct labels
Wilke's general answer to every colour weakness is redundant coding: encode the same information twice, in colour and in something else, so that the chart still works when the colour fails3. In a scatter plot that means different point shapes as well as colours. In a line chart it means labelling each line directly at its end instead of using a legend.
He makes two further points that most software ignores. First, if the lines or groups have a visual order, the legend must follow that order. Software usually sorts the legend alphabetically, so the top line in the chart is the third entry in the legend, and matching them takes real effort3. Second, the best legend is no legend: label the data directly so the reader never has to look away from it3. When you label directly, Wilke suggests using two shades of each colour, a light one for filled areas and a darker one for lines and text, because thin text in the same colour as a filled area looks lighter than the area3.
The legend round trip is the hidden cost here. Every time a reader leaves the data to consult a legend and comes back, they spend attention and risk a mismatch. Two series with direct labels cost nothing. Five series with a legend cost five round trips at least.
Example: churn by plan, labelled where the reader looks
Maya's standing question, whether Explorer is costing Ridgeway customers, starts with the plain comparison. Usual subscribers churn at 2.6% a month on average and Explorer subscribers at 7.8%. With 2,520 subscribers on Usual and 1,080 on Explorer, that is about 66 cancellations a month on Usual and 84 on Explorer: Explorer has 30% of the subscribers and about 56% of the cancellations. Joe shows the four quarters of 2024 for both plans:
Two series, so two colours, which passes the one job test (group) with room to spare. Joe puts Explorer first so it takes the blog's accent colour, because Explorer is the plan Maya is asking about, and in the slide version he labels the bars "Explorer" and "Usual" directly above the first quarter instead of in a legend. The legend order matches the bar order. On the next slides of the same deck, Explorer keeps the same colour every time it appears, which brings us to consistency.
Contrast: the 3:1 rule for graphics
Colour also has to be visible at all. The Web Content Accessibility Guidelines (WCAG) 2.1 contain two success criteria that apply directly to charts. Success criterion 1.4.1 (Use of Color, level A) says colour must not be the only visual means of conveying information. Success criterion 1.4.11 (Non text Contrast, level AA) says graphical objects that are needed to understand the content must have a contrast ratio of at least 3:1 against adjacent colours21. The W3C's explanation of 1.4.11 names charts and graphs explicitly: the parts of a chart a reader needs, such as the bars and lines, have to meet the 3:1 ratio against their background, unless the same information is available another way, for example in labels or a table22.
Contrast ratio has a precise definition. It compares the relative luminance (the perceived brightness) of the lighter colour with that of the darker one (Foundations: ratios and rates):
where is the contrast ratio, is the relative luminance of the lighter colour and the relative luminance of the darker colour, each on a scale from for black to for white. The in numerator and denominator stands in for ambient light falling on the screen. The ratio runs from (no contrast) to (black on white).
Relative luminance is a weighted average of the red, green and blue channels after they are converted from the stored 0 to 255 values to linear light (Foundations: mean):
where is the relative luminance, and , and are the linearised red, green and blue values between and 21. The weights tell a story of their own: green contributes about 72% of perceived brightness and blue only about 7%. That is why yellow, which is red plus green, looks so light, and why a pure blue looks so dark. It is the colour science behind the Handbook's warning about palettes that look balanced in a colour picker but not to the eye6.
Example: which of Ridgeway's colours may carry data
Joe checks every colour he wants to use against Ridgeway's white chart background, where white has . Here is the calculation for Okabe and Ito vermilion (#D55E00), whose relative luminance works out at 0.2215:
That passes, because is above . The full check, computed the same way:
| Colour | Hex | Relative luminance | Contrast on white | Use for data? |
|---|---|---|---|---|
| Espresso brown (brand) | #4B2E2A | 0.036 | 12.2:1 | Yes, for text and titles |
| Okabe and Ito blue | #0072B2 | 0.153 | 5.2:1 | Yes, main accent |
| Okabe and Ito vermilion | #D55E00 | 0.222 | 3.9:1 | Yes, for shortfalls |
| Mid grey | #8C8C8C | 0.262 | 3.4:1 | Yes, for context bars |
| Okabe and Ito bluish green | #009E73 | 0.257 | 3.4:1 | Yes |
| Okabe and Ito orange | #E69F00 | 0.416 | 2.3:1 | Only with an outline or labels |
| Latte (brand) | #C8A27C | 0.396 | 2.4:1 | No, background tints only |
| Light grey | #BDBDBD | 0.509 | 1.9:1 | No, gridlines only |
| Okabe and Ito yellow | #F0E442 | 0.744 | 1.3:1 | No, not on white |
Two results surprise people. First, a palette can be safe for colour vision deficiency and still fail contrast: Okabe and Ito's yellow and orange are distinguishable for colour blind readers but too light to see well on white. Second, the light grey many designers choose for "unimportant" bars fails, which is why Joe uses a mid grey for context. Muted should mean less vivid, not invisible.
Is this a legal question? For a website, it can be. In the UK, the Equality Act 2010 requires service providers to make reasonable adjustments for disabled people, which covers websites23. The Act names no technical standard. For public sector websites, the 2018 accessibility regulations apply, and the government's guidance measures them against WCAG 2.2 at level AA, the newer version, which keeps both colour criteria unchanged2425. That makes WCAG at level AA the sensible benchmark for everyone else. If Ridgeway sells to consumers in the EU, the European Accessibility Act applies to eCommerce services from 28 June 2025, again with WCAG 2.1 AA behind the technical standard26. I covered the details in accessibility law for online businesses. This is general information, not legal advice. The practical point is simpler: a chart that fails 3:1 fails some of your readers whether or not a regulator ever looks.
Brand colours and data colours are different jobs
Every company with a brand guide eventually asks whether charts should use the brand colours. Knaflic's answer is balanced: pick one, perhaps two, brand colours as the "look here" signal and keep the rest muted in greys. If the brand colour does not stand out enough, use black for emphasis or a different colour that does not clash with the brand4. She also points out that colour sets a tone: the same chart can feel friendly or clinical depending on the palette, and a playful palette that suits a lifestyle article would be wrong in a quarterly report4.
The underlying reason is that brand colours and data colours are chosen for different jobs. Brand colours are chosen to be recognisable and to feel right. Data colours are chosen to be distinguishable, ordered where order is needed, balanced, accessible and visible against the background. A brand palette passes all of those tests only by luck.
One habit from public statistics helps. The ONS defines one default colour for single series charts, a separate highlight colour, a fixed order for its categorical palette, and darker variants for text where the chart colour is too light to read10. Writing it down once means nobody chooses colours chart by chart.
Example: Ridgeway's chart palette in one card
Joe writes Ridgeway's chart palette on one page, so Maya, the wholesale team and anyone else who makes a chart all draw from the same source:
| Role | Colour | Why |
|---|---|---|
| Text, titles, axes | Espresso brown #4B2E2A | Brand, 12.2:1 on white |
| Default for data | Mid grey #8C8C8C | Neutral, 3.4:1 on white |
| Accent, "look here" | Blue #0072B2 | Strongest contrast of the safe set, survives colour vision deficiency |
| Shortfall, "below target" | Vermilion #D55E00 | Reads as warning, 3.9:1, distinct from blue for all readers |
| Groups, up to five | Okabe and Ito, in the fixed order blue, vermilion, bluish green, reddish purple, orange (orange with labels) | Designed for colour vision deficiency |
| Amounts | ColorBrewer Blues, seven steps | Single hue, steady lightness |
| Above and below a midpoint | ColorBrewer purple to orange, seven steps | Balanced, neutral middle, safe for colour vision deficiency |
| Never | Latte for data, red with green, rainbow scales | Fail contrast, fail colour vision deficiency, fail order |
The latte brand colour still appears, as a pale background behind a highlighted panel on a slide, where it carries no data. The brand is present, and it is not in charge of the data.
Consistency: a colour means one thing everywhere
Knaflic argues strongly against changing colours or chart styles for the sake of variety. Once a reader learns what a colour means, they assume it means the same on the next slide. If each region has a colour in one chart, keep those colours for those regions in every chart of the report, and avoid reusing them for anything else4. A change of colour should signal a real change, for example a new section or a shift in tone, never novelty4. The ONS gives its analysts the same rule for categories that appear across several charts of one release10.
Example: Explorer is always blue
In Joe's quarterly deck for Maya, Explorer is blue on the churn chart, the sign up chart and the margin by plan chart. Usual is grey everywhere, because in this deck Usual is the comparison, not the subject. On the one slide where Joe switches to a diverging scale for the margin grid, he says so in the subtitle ("purple above target, orange below") and he does not use blue at all, so nobody reads the grid as being about Explorer.
Where experts disagree, and my view
Three colour questions divide thoughtful people.
Red and green for bad and good. The case for: the connotation is immediate in Western business culture, and Knaflic acknowledges the useful meaning red and green carry4. The case against: roughly one man in twelve cannot rely on the difference, and Few's rule is to avoid the combination altogether920. Knaflic's middle way is to keep the connotation only with an additional cue, or to use blue and orange instead4. Wilke shows that a carefully chosen pink and yellow green keeps the look and works for everyone2.
My view: never let red against green be the only signal. If your organisation insists on traffic lights, add symbols and words, and choose a red and a green that also differ clearly in lightness. Better still, ask whether the chart needs both ends highlighted at all. Usually only the bad news needs pointing at, and one accent colour on grey does that.
Rainbow scales. The case against is strong and empirical151617. The fair point on the other side, which Liu and Heer's results support, is that scales with several hues can let readers tell apart small differences better than a single hue, because hue changes add resolution16. That is a case for well designed multihue scales such as viridis, not for the rainbow.
My view: no rainbow scales for data, ever. When you need more resolution than a single hue gives, use viridis or a ColorBrewer multihue scale.
Colour for decoration. Tufte's tradition keeps strong colour for information and large areas quiet19. Others argue colour makes charts more inviting. My view: in a chart that supports a decision, a brand tint behind the chart can make it feel like yours, and the data itself gets colour only through the one job test.
A ten minute colour check
Before any chart goes to Maya, or to a client, or into a deck, Joe runs through these questions. They take about ten minutes the first few times and two minutes once they are habit.
| Check | Pass when |
|---|---|
| One job | You can say in one word what colour does: group, measure, diverge or point |
| Count | No more than five colours for groups, otherwise labels |
| Right scale | Groups: qualitative. Amounts: sequential. Around a midpoint: diverging, balanced, symmetric limits |
| Greyscale | Printed or viewed in grey, the order still reads and highlights still stand out |
| No rainbow | No spectrum scale for amounts |
| Red and green | Never the only difference between two meanings |
| Simulation | Checked in a colour vision deficiency simulator, especially small marks |
| Contrast | Every colour that carries data reaches 3:1 against the background |
| Labels | Direct labels where possible, legend in the same order as the data |
| Phone call test | The chart can be explained without naming a colour |
| Consistency | Each category keeps its colour across the whole report |
| Eyes first | Look away and back: the eye lands where the point is |
Conclusion
Colour is the strongest signal on a chart and the weakest way to read an amount. That combination is why it does so much damage when it is used by default and so much good when it is used on purpose. Give colour one job: tell groups apart, show an amount, show the distance from a midpoint, or point at the thing that matters. Pick the scale that fits the job, keep the count low, let lightness carry order, keep red and green from carrying meaning alone, reach 3:1 contrast, and label directly so that nobody has to decode anything.
At Ridgeway, none of the numbers changed in this chapter. What changed is that the charts now show the three coffees, the summer margin dip and the gap between Explorer and Usual at first look, to every reader in the room. The next chapter applies this to amounts and proportions.
Data storytelling, analytics dashboards and data science are a core part of my work for clients. If you want your own charts and dashboards to make the point at first sight, the data science page shows how I work, and the free workshop is the place to start.
