What a gradient really is
A gradient blends one color into another. To do that, the computer works out every color in between by taking a straight path from one to the other.
The catch: "straight" depends on which color map it uses. Each strip on this page uses a different map, so the same two colors take nine different routes, and you get nine different gradients.
Why some gradients turn grey
Try the Blue–Yellow preset. In sRGB, the classic way, halfway between blue and yellow is plain grey, so the middle looks dull and muddy. In OKLCH the path curves through teal and green and stays bright all the way.
Linear sRGB blends the way real light does, like two overlapping spotlights. Its middles come out lighter than you might expect.
The white line
The thin white line on each strip shows how light the gradient looks to your eye, from left to right. A smooth, even line means a smooth, even gradient.
A dip means a darker band in the middle, a bump a lighter one. Untick Lightness curve to hide the lines.
Shorter or longer?
Some maps (HSL, LCh and OKLCH) arrange colors in a circle, like a color wheel. Going from red to blue, you can take the short way round through purple, or the long way round through orange, yellow and green.
Shorter takes the short way. Longer takes the long way, which is how you make a rainbow from just two colors.
Editing the colors
Each little marker under the bar is a color stop. Click the bar (or +) to add one, drag a stop sideways to move it, and drag it down off the bar (or use the bin) to remove it.
Click a stop to change it: type a hex code or a color name, set its position in percent, or use your foreground or background color. Steps turns the smooth blend into flat bands, handy for charts and maps.
Which one should I use?
For most designs, OKLCH or OKLab. They're built around how people see, so gradients look even and stay colorful. OKLCH keeps colors vivid; OKLab takes the most direct route and never wanders through colors you didn't ask for.
sRGB matches what older websites and apps do. Linear sRGB is good for light, glows and shadows.
Using it on your site
Click a strip to choose its space: the editor bar then blends in that space too, so a stop you add takes the color you see there. Pick CSS gradient from the Copy menu in the editor to get the code; the same menu copies just the stop colors, as HEX, CSS variables, SCSS, Tailwind, JSON or CMYK. Modern browsers can blend in OKLCH and the other maps themselves; the code includes a backup made of many small steps, so older browsers show the same gradient.
Looking for a starting point? The Preset gradients at the bottom are ready to load into the editor. Search them by name or group.
Downloading an image
A screen has only 256 steps per color channel. Spread a subtle or dark gradient across a wide image and each step becomes a flat stripe hundreds of pixels wide: banding. Download image computes every pixel exactly in the space you chose, then dithers: just before rounding, each pixel gets a tiny random nudge of at most one step, so neighbouring pixels round differently. Up close it is fine grain you can't see; from a normal distance your eye blends it into the in-between colors, and the stripes are gone. The average color doesn't change.
Pick a size and a direction (across, down, diagonal or from the middle out). Stepped gradients are left undithered, since their bands are the point.