Skip to content
Toolbox

CSS Gradient Generator

Build linear and radial CSS gradients visually with multiple colour stops, live preview and copy-ready CSS output.

0° points up, and angles increase clockwise.

Colour stops
CSS
background: linear-gradient(135deg, );

About CSS Gradient Generator

Design a gradient by dragging colour stops and watching the result update live, then copy the CSS. Supports linear and radial types, any angle, and as many stops as you need — plus a randomiser for when you want a starting point rather than a blank canvas.

How to use it

  1. Choose linear or radial.
  2. Add, drag and recolour the stops.
  3. Set the angle or radial shape.
  4. Copy the generated CSS.

Frequently asked questions

Which angle does 0deg point to?

In CSS, 0deg points up and angles increase clockwise. So 90deg runs left to right and 180deg runs top to bottom.

Why does my gradient look muddy in the middle?

Blending between complementary colours passes through grey in sRGB. Add an intermediate stop in a related hue, or pick colours closer together on the wheel.

Do I need vendor prefixes?

Not any more. Unprefixed linear-gradient and radial-gradient have been supported in every major browser for over a decade.

In-depth reads that go beyond the calculator.