Gradient Generator

Pick a gradient type, drag stops along the track, or hit “Random gradient” for a beautiful ready-made look — then copy production-ready CSS.

Drag a stop to move it · click the track to add a stop

Selected stop

Angle · 90deg

Export

Copy the code or download the gradient as a PNG image.
background: linear-gradient(90deg, #7c3aed 0%, #ec4899 100%);

A CSS gradient is a smooth transition between two or more colors. Gradients add depth to buttons, backgrounds and hero sections without using image files.

Frequently asked questions

Linear (a straight line), radial (outward from the center) and conic (rotating around a point).

Good to know

  • Conic gradients sweep around a central point, which is ideal for pie charts and spinning effects.
  • Radial gradients fan out from a center point, which is great for glows and highlights.

Tools that pair with Gradient Generator

Gradient Generator is one of 33 single-page tools in this workspace. These are the ones that carry the job on — the color value moves between them, so nothing gets retyped or re-uploaded.

Guides for Gradient Generator

Longer reads for the questions that come up around gradient generator.