Tools38

Discrete steps

Gradient Palette.

Generate 3 to 16 discrete stepped swatches between anchor colors for UI ramps, charts, and heatmaps.

Export palette

Import colors

Paste CSS variables, JSON tokens, a Coolors URL, or comma-separated HEX / RGB / OKLCH values (3–8 colors).

Try:

Saved Palettes

Stored in your browser cache—no account required.

Blog How to generate discrete stepped colors between two HEX codes Read the guide

Generate 3 to 16 discrete stepped color swatches between anchor colors

Interpolate clean, distinct color columns between two or three anchor colors across perceptual OKLCH, Rainbow Long-Arc, CIELAB, or sRGB—ideal for data-visualization ramps, heatmaps, and stepped UI themes.

3-to-16 step discrete palette generator with 2-stop and 3-stop anchors.
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

Precision discrete ramps for charts & design systems

Data Visualization

Sequential & diverging steps

Build 3-to-16 step choropleth and heatmap ramps with optional midpoint anchors.

Perceptual Uniformity

OKLCH & Rainbow Long-Arc

Avoid muddy sRGB midtones or traverse the long hue arc for multi-hue spectra.

Developer Ready

JSON array & CSS variables

Copy clean JSON HEX arrays for Chart.js / D3 or CSS custom properties in one click.

Key capabilities

3–16 discrete stepped columns

Computes exact evenly spaced stops across 2-anchor sequential or 3-anchor diverging ramps.

Chart & UI exports

Copy JSON HEX arrays, CSS variables, vector SVGs, or labeled PNG sheets.

Mud-free OKLCH interpolation

Uses CSS Color 4 'in oklch' interpolation so complementary transitions stay vivid from start to finish.

Side-by-side proof

Toggle Compare OKLCH vs sRGB right on the canvas to inspect midpoint chroma differences.

Kubelka-Munk spectral paint physics

Models 16-band visible light absorption and scattering so yellow and blue mix into natural green.

4 mixing engines

Compare Pigment, OKLCH, CIELAB, and sRGB side by side across 3-to-11 blend steps.

Synced active palette across tools

Move freely between Generator, Visualizer, Contrast, Tailwind, and Vision without re-entering colors.

How state travels

Your active palette syncs automatically in browser storage across every module, and visiting any tool directly starts from a fresh harmonious palette.

Formats & privacy

Supported inputs
Start, Optional Middle & End Colors + 3–16 Step Count
Outputs & exports
Discrete Swatch Array, CSS Variables, SVG & PNG

Supports 3 to 8 active palette roles with unlimited local saves and exports—no account required.

All color math, simulations, and exports run locally in your browser while syncing your active palette across tools.

FAQ

Good to know.

A few answers before you get started.

On your device
What does 'Rainbow Arc' do compared to standard OKLCH?

Standard OKLCH takes the shortest hue path around the color wheel, while Rainbow Arc traverses the longer path (>180°) to visit rich intermediate hues across the spectrum.

How do I load colors from my Active Palette?

Click any swatch in the Active Palette bar at the top of the page to alternate setting the Start and End anchor colors.

What is the difference between OKLCH Short-Arc and Long-Arc?

Short-Arc takes the most direct path around the hue circle, while Long-Arc travels the opposite way to create full-spectrum multi-hue ramps.

Can I add a middle color stop to create a 3-point diverging ramp?

Yes. Enable the midpoint stop to transition smoothly from Color A through a custom center hue to Color B across up to 16 steps.

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