← lessons

Color for charts and screens

Free · 9 steps · about 20 minutes

Choose colors people can read: on a screen, on paper, and for readers who can't tell red from green.

You'll learn to:

  • Mix color for screen and for print
  • Build a palette that fits your data
  • Check a chart for color-blind readers, and fix it

From my thirty years in product design.

Start here

On a screen, red light plus green light makes what?

  • yellow
  • brown
  • grey

The steps are things you do by hand, so they need JavaScript. Without it, here is what each one asks and the rule it teaches.

Step 1 · Mix color for screen, then for print

Switch on red and green and slide them together. Does your guess hold? Then try the same thing in print.

The rule: Pick screen colors on a screen and print colors on paper. A screen starts black and adds light, so colors mix toward white. Paper starts white and ink takes light away, so colors mix toward black. A palette chosen for one won't look the same on the other.

Step 2 · Make a color lighter, darker or softer

Match the swatch. Add white to lighten it, black to darken it, grey to soften it. The number says how far off you are.

The rule: Add white for a tint, black for a shade, grey for a tone. Those three moves build most palettes. Step six uses one of them: a single hue walked from dark to light.

Step 3 · Pick colors that go together, then test them

Try all three color schemes and turn the wheel. Each time, the check says whether those colors could label a chart.

The rule: Colors that look good together still have to be told apart. Test them. The color wheel tells you which hues sit well together. It says nothing about whether a reader can tell them apart on a chart. The same scheme passed in one spot and failed in another.

Step 4 · See what color-blind readers see

Type the number you see in the dots. Then switch to deuteranopia, a common kind of red-green color blindness, and look again.

The rule: Never let red against green carry the meaning alone. The number didn't fade. It vanished, because only red against green carried it. About 1 in 12 men and 1 in 200 women of Northern European ancestry have red-green color blindness. Most have a milder form than the one shown here.

Step 5 · Find one bar among twelve colors

I'll name a team. Tap its bar as fast as you can. Then do it again with one color.

The rule: Color points. Use it on the one thing that matters. The twelve colors didn't help. The bar lengths had already ranked the teams, so you read labels. One color, on the one bar that mattered, did the whole job.

Step 6 · Match the palette to the data

Pick a palette for each of three kinds of data. A wrong pick still draws, and shows you what it hides.

The rule: Names get separate hues. Amounts get one hue, light to dark. Change from zero gets two hues that meet in the middle. Nothing ranks names, so their colors shouldn't rank either. An amount only goes one way, so its color should too. Change from zero has a real middle, and its palette needs one. The wrong palette invents an order or hides one.

Step 7 · Add lines until the colors fail

Add lines to the chart until the check fails. Then turn on dashes and labels.

The rule: Past about five lines, give each one a dash, a marker or a label as well as a color. I used to say keep it under ten. The measurement is harsher: hues spaced evenly around the wheel gave out at five here. Past that, color can't tell the lines apart by itself.

Step 8 · Test your own palette

Paste the colors from a chart you've shipped, as hex codes separated by commas.

The rule: Test your palette where it ships, every time it changes. This check is chart-color-audit, a tool I wrote so a build fails when a color change breaks a chart. The command under your result runs it on your machine. One well-meant tweak can break a palette that passed yesterday.

Step 9 · Fix a chart that fails

Five lines, and the check fails. Change colors, add dashes and labels, or both, until it passes.

The rule: Measure, change one thing, measure again. Nobody gets a palette right by looking at it, me included. The check is what tells you.


Your cheat sheet

  1. Pick screen colors on a screen and print colors on paper.
  2. Add white for a tint, black for a shade, grey for a tone.
  3. Colors that look good together still have to be told apart. Test them.
  4. Never let red against green carry the meaning alone.
  5. Color points. Use it on the one thing that matters.
  6. Names get separate hues. Amounts get one hue, light to dark. Change from zero gets two hues that meet in the middle.
  7. Past about five lines, give each one a dash, a marker or a label as well as a color.
  8. Test your palette where it ships, every time it changes.
  9. Measure, change one thing, measure again.

Check yourself

  1. Your bar chart already sorts twelve teams by length. What should color do?
    • Give each team its own color
    • Pick out the one team that matters
    • Run from dark to light

    Answer: Pick out the one team that matters. Color points. Use it on the one thing that matters. Step 5

  2. You're coloring change since last quarter, from -30% to +30%. Which palette?
    • Separate hues
    • One hue, light to dark
    • Two hues that meet at zero

    Answer: Two hues that meet at zero. Names get separate hues. Amounts get one hue, light to dark. Change from zero gets two hues that meet in the middle. Step 6

  3. A status dot is red when a service is down and green when it's up. What's missing?
    • A brighter red
    • A word beside the color
    • A third color

    Answer: A word beside the color. Never let red against green carry the meaning alone. Step 4


Tools and reading

Where the facts come from

  • Red-green color vision defects are the most common form. Among populations with Northern European ancestry they occur in about 1 in 12 males and 1 in 200 females. Blue-yellow defects occur in fewer than 1 in 10,000 people. MedlinePlus Genetics, National Library of Medicine
  • Deuteranomaly is the most common type of red-green deficiency and is mild. Protanopia and deuteranopia leave someone unable to tell red from green at all. National Eye Institute
  • The vision switch applies the simulation matrices published by Machado, Oliveira and Fernandes in 2009, at full severity, in linear RGB. Machado, Oliveira and Fernandes, 2009
  • Graphical objects need a contrast ratio of at least 3:1 against adjacent colors. The W3C gives a graph whose lines each reach 3:1 against the background as an example. W3C, Understanding Success Criterion 1.4.11

Every chart, wheel and dot on this page is drawn by the page. All of the data is invented.


← Brown bag lessons · conscious_shell