Open Gradient Palette in your browser to generate 3 to 16 evenly spaced discrete color steps between two or three anchor HEX codes in OKLCH, Long-Arc Rainbow, CIELAB, or sRGB. Everything runs locally on your device with instant sync across the shared Active Palette bar.
Choose your endpoint colors and step count (3–16)
Pick your Start and End colors—and optionally enable a Middle anchor when building diverging or three-hue scales—then set the exact number of discrete swatches from 3 up to 16.
Click any generated step column to copy its individual #HEX code.
Layered vector landscapes: Generate 6–8 steps from pale sky cream to deep mountain indigo for instant parallax illustration depth.
Control the hue path through color space
Switch interpolation modes to see how the path between identical endpoints changes completely.
For heatmaps (like Viridis-style blue → teal → emerald → yellow), OKLCH cleanly steps lightness and hue simultaneously.
OKLCH Short-Arc
Travels the shortest angular path around the hue wheel while stepping lightness evenly.
OKLCH Rainbow Long-Arc
Sweeps the long way around the wheel to produce multi-hue spectral progressions.
CIELAB & Classic sRGB
Straight-line perceptual Lab or legacy RGB channel stepping when matching existing specs.
Copy clean arrays or send steps to Active Palette
Export all steps as a JSON/JS array, :root CSS variables, vector SVG swatch strip, or PNG—or load up to 8 steps directly into your Active Palette.
/* 6-Step Perceptual OKLCH Ramp */
const steps = [
'#0F172A', '#143F59', '#126F72',
'#2FA16F', '#8ACF58', '#FDE047'
];
Common questions
What happens when Start and End have the same hue?
It produces a pure monochromatic ramp stepping smoothly in lightness and chroma—great for single-hue choropleth maps.
How many steps can I load into the Active Palette bar?
The shared Active Palette bar holds 3 to 8 roles; for 9–16 step scales, copy the full HEX/CSS array or SVG strip directly.
Does every step stay inside standard sRGB gamut?
Yes—out-of-gamut high-chroma midpoints are smoothly gamut-mapped in OKLCH without hue clipping.
Try Gradient Palette
Slice smooth 2- or 3-anchor transitions into 3 to 16 exact #HEX steps.