GamutDesk Logo
GamutDesk

N-Step Color Interpolator & Palette Morpher

Blend two HEX colors into a 3 to 20 step palette with linear or cubic-bezier easing in sRGB, linear light or OKLab. Copy HEX, CSS or JSON instantly.

Client-Side ArchitecturePrivate Client-Side Processing

Endpoints & steps

7

Blending

Color space
Easing

Pick Bézier to define a custom cubic-bezier curve. Endpoints always stay exactly on your two input colors.

Palette (7 colors)

Export format
Output
#2563EB, #4E76D5, #7183BD, #938EA4, #B49586, #D49B60, #F59E0B

Technical Specification & Mathematical Principles

How the Color Step Interpolator Works

For N steps, each step i has progress t = i / (N - 1). The mixed channel is start + (end - start) x f(t), where f is the easing function. Linear easing sets f(t) = t. A cubic-bezier easing solves the Bézier curve x(s) = t for s, then returns y(s), the same algorithm CSS uses for transition timing functions.

The space matters. Interpolating gamma-encoded sRGB is simple but can darken the midpoint of saturated pairs. Linear-light mixes physical light intensity, and OKLab mixes perceptual lightness, a, b, which usually produces the smoothest perceived ramp. Endpoints are always exactly your two input colors.

Frequently Asked Questions

Which color space should I pick?
OKLab gives the most even perceived steps for most pairs. sRGB matches what CSS gradients do by default, and linear-light matches physically correct blending, which looks brighter in the middle.
What does Bézier easing do to the steps?
It changes the spacing. An ease-in curve places more steps near the start color, while ease-out places more near the end, so you can bias a ramp toward one side.
Why are my colors identical in a couple of steps?
With very close endpoints and many steps, rounding to 8 bits produces repeated values. Reduce the step count or choose endpoints that are further apart.

Related Design & Color Instruments