Data Viz Palette Builder: Color-Blind-Safe Chart Colors
Generates a chart palette of the type and size you choose and reports the closest colour pair under normal vision and three colour vision deficiencies.
Use the tool
Why this tool exists
Chart colours must stay apart for everyone. Categorical palettes are chosen from a candidate set by picking, one at a time, the colour farthest from those already chosen, across all four views. Sequential palettes step lightness at a fixed hue. Diverging palettes use two hues meeting at a light middle.
Distances are OKLab differences times 100, using the Machado 2009 simulation at full severity. The review threshold of 8 is a rule of thumb. Add labels or patterns for important series.
How to use it
- Choose Categorical, Sequential or Diverging and the number of colours.
- Set hues for sequential and diverging palettes.
- Run and read the distance check.
- Copy the JavaScript array or CSS variables.
Frequently asked questions
Is the result guaranteed accessible?
No. It is a heuristic. Test with real users where it matters.
How many categories can I use?
Up to 12, but beyond 6 or 7 colours become hard to tell apart.
Why a greedy search?
It is simple and fast and gives well-spread colours.
What about greyscale printing?
Sequential palettes vary lightness, so they survive it. Categorical ones may not.