Tools38

A PRACTICAL COLOR GUIDE

How to generate discrete steppedcolors between two HEX codes

Slice smooth 2- or 3-anchor transitions into 3 to 16 exact #HEX steps.

Generate 3 to 16 evenly spaced discrete color steps between two or three anchor HEX codes in OKLCH, Long-Arc Rainbow, CIELAB, or sRGB.

Follow the guide
A REAL STUDIO EXAMPLE
Before Uneven sRGB Step Jumps: Linear RGB interpolation bunches dark steps together
After 8 Uniform OKLCH Steps: Equal perceptual jumps across every step
Start #0F172A + End #FDE047 → 8 perceptually uniform discrete #HEX steps
QUICK VIDEO TUTORIAL How to generate discrete stepped colors between two HEX codes Slice smooth 2- or 3-anchor transitions into 3 to 16 exact #HEX steps. Watch the video

How to generate discrete stepped colors between two HEX codes

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.

01

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.

02

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.

03

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'
];
A FEW USEFUL DETAILS

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.

YOUR TURN

Try Gradient Palette

Slice smooth 2- or 3-anchor transitions into 3 to 16 exact #HEX steps.

Open Gradient Palette

Image detail

Language38

EnglishالعربيةFrançaisItalianoDeutschEspañolPortuguêsNederlandsРусскийTürkçe日本語中文हिन्दीBahasa IndonesiaBahasa Melayu한국어Tiếng ViệtไทยPolskiSvenskaУкраїнськаNorskবাংলাΕλληνικάفارسیاردوČeštinaDanskMagyarRomânăSuomiБългарскиFilipinoქართულიSlovenčinaAzərbaycancaעבריתSlovenščina