Skip to content

CSS Gradient Generator

Design linear, radial and conic gradients; copy the CSS or download them as SVG and PNG.

No more grey dead zone

Browsers mix colors in sRGB, so the middle of a blue-to-yellow gradient falls into a muddy grey. The smooth blend option adds in-between colors computed in the perceptual OKLab space; the blend stays vivid and the code works in every browser.

Three gradient types

A linear gradient runs along an angle, a radial one spreads out from a center and a conic one sweeps around a center. Center and shape are adjustable, with up to ten color stops.

CSS, SVG and PNG

The CSS output comes with a fallback background color. SVG output is available for linear and radial gradients; PNG renders every type, conic included, at 1600×900 pixels.

All ColorLab tools