Skip to content
Devtoolry

CSS Gradient Generator

Design linear and radial CSS gradients visually online, adjust colours, stops and angle, then copy the generated CSS background code.

Runs in your browser · Nothing uploadedFree · No sign-up

Something not working, or missing a feature? Send feedback

About the CSS Gradient Generator

The CSS Gradient Generator lets you design linear, radial and conic gradients visually by moving colour stops and angles, then copy CSS with a solid fallback colour.

Everything is generated in your browser; nothing you enter is uploaded, and anything random comes from a cryptographically secure source.

How to use the CSS Gradient Generator

  1. Choose linear, radial or conic.
  2. Add colour stops and drag their positions; set the angle.
  3. Copy the generated CSS.

Common mistakes

  • Banding in subtle gradients. Two similar colours over a large area can show visible stripes. Add a middle stop or a little more contrast between the colours.
  • Grey middle tones. Blending complementary colours, such as blue and orange, passes through grey. Add a brighter colour stop in the middle to keep the gradient vivid.
  • Text on gradients. Text contrast changes across a gradient. Check the contrast at the lightest and the darkest part behind the text.

Works well with the CSS Gradient Generator

Frequently asked questions

Why is there a plain background colour too?

It is a fallback for very old browsers and the colour shown before the gradient renders.

Can gradients be animated?

Browsers cannot transition between gradients directly, but you can animate background-position or use CSS custom properties with @property.

What do linear, radial and conic mean?

Linear blends along a line at an angle, radial blends outward from a centre, and conic sweeps around a centre like a colour wheel.

Do I need vendor prefixes?

No. Unprefixed gradient syntax works in all current browsers.

Guides and tutorials