Home › Developer Tools › CSS Gradient Generator

CSS Gradient Generator

Design a gradient by eye, then copy the CSS or download it as an image.

CSS


    

How to use CSS Gradient Generator

  1. Pick a type (linear, radial or conic) and set the angle or centre.
  2. Add, drag and colour the stops, or start from a preset.
  3. Copy the CSS or download a 1920 × 1080 PNG.

Using the CSS

Paste the two lines into any CSS rule. The first line is a solid colour for very old browsers; the second is the gradient. Gradients work in every modern browser without prefixes.

Tips for nice gradients

  • Use colours that sit near each other on the colour wheel to avoid a muddy grey middle.
  • Two or three stops usually look better than many.
  • Lower a stop's opacity to fade into the background or over a photo.
  • Conic gradients make pie charts and colour wheels.

Frequently asked questions

Can I move a colour stop?

Yes. Drag the circles on the bar, use the arrow keys, or type a position.

Can I use transparency?

Yes; set a stop's opacity below 100.

Is the PNG exactly the same?

Yes for linear and conic. Radial ellipses and repeating gradients may differ slightly; use the CSS on websites.

Is it free to use the gradients?

Yes, for anything.

Related tools

More Developer Tools