Find a course

Module 3: Design That CommunicatesLesson 7 of 1112 min

Color and Accessibility

Pick categorical, sequential and diverging palettes for the right data, design for color vision deficiency, and check contrast so charts work for everyone.

Step 1 of 11Learn

The red-green map nobody could read

A logistics company built a map of on-time delivery by region: green for good, red for bad, yellow in between. The operations director stared at it for a while and said, "They all look the same to me." He has red-green color vision deficiency, as do roughly 1 in 12 men and 1 in 200 women of Northern European ancestry. In a team of 25 people, it's likely at least one person sees red and green as similar muddy shades.

Color is one of the most powerful tools in a chart and one of the most misused. Used well, it groups related items, highlights the key point and shows intensity. Used badly, it adds noise, implies meaning that isn't there and shuts out some readers.

The fix isn't to avoid color. It's to use it with a purpose and to never rely on hue alone to carry essential information. In this lesson you'll learn the three main palette types, how to make charts readable for people with color vision deficiency, and how to check contrast.

A guiding question for every color choice: what does this color mean? If the answer is "nothing, the software picked it," change it to a neutral gray. Color that means nothing makes readers search for a meaning anyway.

Step 2 of 11Chart

Who has red-green color vision deficiency?

Who has red-green color vision deficiency?Bar chart with 2 categories: Men: 8%; Women: 0.5%.0%2%4%6%8%MenWomen8%0.5%
Approximate rates for people of Northern European ancestry (about 1 in 12 men, 1 in 200 women); lower in many other groups.
Who has red-green color vision deficiency?
ItemShare affected
Men8%
Women0.5%

Step 3 of 11Learn

Three kinds of palettes

Match the palette to the data type.

Categorical palettes use distinct hues, such as blue, orange, green and purple, to separate groups with no order: product lines, regions, competitors. Keep it to about five to seven colors; beyond that, colors become hard to tell apart and remember. Use the same color for the same category across all charts in a report.

Sequential palettes run from light to dark in one hue, or a smooth blend of hues, to show low to high values of a single quantity, such as population density or sales per store on a map or heat map. Lightness is the key: readers interpret darker as "more." Avoid rainbow scales for sequential data; their bright bands create false boundaries and their order isn't intuitive.

Diverging palettes combine two sequential palettes that meet at a neutral midpoint, such as blue to white to orange. Use them when values have a meaningful center: above or below target, profit versus loss, change from last year, agreement versus disagreement in surveys. The midpoint must mean something, like zero or the target, not just the middle of the data.

Two further habits help. Use a neutral gray for context and "other." And respect common associations where they don't conflict with accessibility: many readers link red with warning, and many link blue with cool or calm, though meanings vary across cultures and industries.

Step 4 of 11Practice · Match the pairs

Match each dataset to the palette type that fits it best.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. Market share of four competitor brands
  2. Average household income by county on a map
  3. Each region's sales compared with its target, above or below
  4. One series to emphasize against gray context lines

Step 5 of 11Learn

Designing for color vision deficiency

The most common forms of color vision deficiency make reds and greens hard to distinguish. Less common forms affect blues and yellows, and a very small number of people see no color at all. Many people also view charts on dim projectors, in grayscale printouts or on phones in bright sunlight, so accessible design helps everyone.

Practical rules:

  • Avoid red versus green as the only distinction. If you need a "good versus bad" pair, blue versus orange is a common accessible alternative.
  • Vary lightness, not just hue. If two colors have the same lightness, they can look identical to some readers and in grayscale. A light color next to a dark one is distinguishable by almost everyone.
  • Don't rely on color alone. Add direct labels, different line styles (solid, dashed), marker shapes or patterns, so the chart still works without color.
  • Use tested palettes. Many tools include palettes designed to be colorblind-safe. Choose those rather than picking colors by eye.
  • Test it. Free simulators and many design tools show your chart as people with different types of color vision deficiency would see it. Converting to grayscale is a quick rough check.

Direct labeling deserves special mention. A label at the end of each line, saying "Online" or "In store," makes color helpful rather than necessary. It's the single most effective accessibility habit for charts, and it also makes charts faster for everyone to read.

Step 6 of 11Compare

Palette types at a glance

AspectCategoricalSequentialDiverging
DataGroups with no orderLow to highAbove and below a midpoint
Colors5–7 distinct huesOne hue, light to darkTwo hues meeting at a neutral
ExampleProduct linesSales per storeChange versus target
CVD-safe tipBlue and orange, plus labelsVary lightness stronglyBlue to orange, not red to green

Step 7 of 11Note

Step 8 of 11Practice · What would you do?

What would you do?

Leo's dashboard shows project status with green, yellow and red dots, with no other labels. A colleague mentions she can't tell the green and red dots apart. What is the best fix?

Step 9 of 11Learn

Contrast: can people see it at all?

Even the right hues fail if they're too faint against the background. Light yellow lines on white, gray text on light gray, and thin pastel bars are common problems, especially on projectors.

The Web Content Accessibility Guidelines (WCAG), the main international standard for accessible web content, measure contrast as a contrast ratio between two colors, based on their relative luminance (perceived brightness on a scale from 0 for black to 1 for white):

Contrast ratio = (L_lighter + 0.05) ÷ (L_darker + 0.05)

Ratios run from 1:1 (no contrast) to 21:1 (black on white). WCAG's main targets:

  • 4.5:1 for normal-size text, such as axis labels and annotations;
  • 3:1 for large text and for graphical objects needed to understand the content, such as lines, bars and chart symbols.

You don't need to compute luminance by hand. Many design tools and free online checkers report the ratio when you enter two colors. But knowing the targets helps you spot trouble: a pale yellow line on white is often well under 2:1.

One practical approach is to keep text dark gray or black, make data colors medium to dark, and reserve very light tints for backgrounds, context series and large filled areas where shape, not fine detail, carries the meaning.

Step 10 of 11Try the calculator

Contrast ratio calculator

Enter the relative luminance of two colors (0 = black, 1 = white). Design tools and online checkers can tell you a color's luminance.

Contrast ratio (to 1)
4.57
Margin over the 4.5:1 text target (negative = fails)
0.07
Margin over the 3:1 graphics target (negative = fails)
1.57

Step 11 of 11Practice · Work it out

A chart line has relative luminance 0.25 on a white background (luminance 1). What is the contrast ratio, to two decimal places?