Skip to content
IndexRequest a UIAboutContact

Chart Series Palette Check

A four-line chart in three palettes, with a greyscale test and a measured lightness gap between the series.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI IMAGE OR VIDEO TOOL
Clean line chart with four series on a light grid, each line a different colour from the Okabe-Ito palette, deep blue, orange, bluish green and reddish purple, lines labelled directly at their right ends instead of a legend, thin axis lines, small grey tick labels, a side-by-side greyscale version showing each line still distinct, flat vector style, generous margins. Negative: rainbow gradients, 3D, red and green only, text errors, clutter. Reduced motion: static chart.

About this pattern

Definition

Series colours in a chart must be told apart by more than hue. Colours with the same lightness merge in greyscale, in print and for many colour-blind readers. A good categorical palette varies in lightness, avoids red against green and is backed up by direct labels at the line ends.

When to use it

  • Aim for a clear lightness gap between series, not only different hues.
  • Use at most five to seven categories; beyond that, group or use small multiples.
  • Label lines directly at their ends so the legend is optional.
  • The Okabe-Ito set was designed to stay distinct under common colour vision differences.

What the controls do

  • Three palette buttons and a Greyscale test checkbox with measured lightness gaps.

Motion & timing

  • Changes are instant.
  • Reduced motion: nothing animates.

Tips & variations

  • Check the chart in greyscale and under a colour-blind simulation before shipping.
  • Do not use colour as the only cue for important series; add dashes or markers.

Code of this live preview

HTML
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Palette"><button data-p="0" aria-pressed="true">Equal lightness</button><button data-p="1" aria-pressed="false">Varied lightness</button><button data-p="2" aria-pressed="false">Okabe-Ito</button></div><svg class="ch" id="ch" viewBox="0 0 300 120" role="img" aria-label="Four series line chart"></svg><label class="sw"><input id="gs" type="checkbox"> Greyscale test</label><p class="out" id="out"></p></div>

Related patterns

Colour Vision Simulator

↗
Colour Vision SimulatorPalettes by Concept

Palette Contrast Matrix

↗
Palette Contrast MatrixPalettes by Concept

Line Chart with Crosshair

↗
Line Chart with CrosshairData Visualization