Contrast & Preview
Chart & Data-Viz Palette Generator
Build readable Sequential, Diverging, and Categorical palettes for charts and dashboards, preview them on live graphs, and copy arrays for Chart.js, Recharts, D3, or ECharts.
Scale Architecture
6
0°
Colorblind Safe SeparationMin OKLab ΔE: Normal 0.17 · Deutan 0.066 · Protan 0.089 · Tritan 0.113
Quarterly Revenue by Channel
Categorical comparison ($K)
Hover to isolate · Click to copy HEX
const chartColors = [
"#0067ab",
"#ffb257",
"#009d7b",
"#ed4b43",
"#1ec5e4",
"#90358a"
];
const config = {
data: {
datasets: chartColors.map((color, i) => ({
label: `Series ${i + 1}`,
backgroundColor: color,
borderColor: color,
})),
},
};How to Use This Tool
- Select Sequential, Diverging, or Qualitative mode and set your category/step count (3–12).
- Adjust base hue rotation and verify the Colorblind Safety badge shows clean ΔE separation.
- Toggle across Bar, Line, Donut, and Heatmap previews and copy the formatted snippet for your charting library.
Key Features
- Supports 3–12 classes across Sequential (linear data), Diverging (positive/negative midpoint), and Qualitative (categorical) schemes
- Real-time pairwise OKLab ΔE audit across Normal, Protanopia, Deuteranopia, and Tritanopia simulation
- Live interactive SVG previews across Bar Chart, Multi-Line Trend, Donut Breakdown, and Heatmap Grid + accessible table view
- Ready-to-paste array exports for Chart.js, Recharts, D3, ECharts, CSS Variables, and JSON
Frequently Asked Questions
Unequal perceptual brightness makes some chart bars appear more important than others. Equal-lightness OKLCH steps keep visual weight fair across categories.
More Color Tools
View all tools →Color Blindness Simulator
Preview how your palette and screenshots look across 8 types of color vision deficiency.
Open tool
Palette Contrast Matrix
Grade every foreground and background color combination in your palette in one grid.
Open tool
Tailwind Color Scale
Turn any brand color into a balanced 50–950 Tailwind scale with live contrast checks.
Open tool