Code & export · Free online tool

CSS Gradient Generator: Linear, Radial and Conic Gradients with Multiple Stops

Build linear, radial and conic CSS gradients with multiple stops, then copy CSS or download PNG.

Build any CSS gradient

Choose linear, radial or conic, list your color stops with positions, and this CSS gradient generator previews the result and writes standards-compliant CSS with a fallback. Turn on repeating gradients for stripes and patterns.

Smoother gradients with OKLab

Gradients between complementary colors often have a gray "dead zone" in the middle. Enable OKLab interpolation (supported in modern browsers) for a smoother, more vivid transition, or add an extra stop picked with the Color Mixer.

Export and reuse

Copy the CSS or download a PNG. For a visual editor with draggable stops, presets and history, use Gradient Studio; for a quick two-color gradient, the Gradient Generator. Keep gradient colors consistent across a site with the CSS Color Variables Generator.

About the CSS Gradient Generator

Outputs standards-compliant CSS including a solid background fallback for old browsers. Stops can be interpolated in OKLab to avoid gray dead zones between complementary colors. Like every ColorMoodHub tool, it is free and runs entirely in your browser, so nothing you enter or upload is sent to a server.

CSS Gradient Generator: frequently asked questions

What is the difference between linear, radial and conic gradients?

Linear goes in a straight line, radial spreads from a center point, and conic rotates around a center like a color wheel.

What does "in oklab" do in a CSS gradient?

It interpolates colors in a perceptual space, avoiding dull middles between distant colors.

How do I write color stops?

One per line, for example "#ff9a8b 0%".

Are CSS gradients supported everywhere?

Linear and radial work in every modern browser; conic gradients and OKLab interpolation work in current versions.

All 45 tools