CSS gradient generator

Design linear, radial and conic CSS gradients with up to 8 colours, see a live preview, and copy the CSS with a solid-colour fallback. Start from presets or a random gradient, and download it as a PNG background image.

Runs in your browser. Nothing is uploaded.
×

How to use the CSS

Paste the two lines into any CSS rule, for example on body or a hero section. The first line is a solid colour for very old browsers; every current browser uses the gradient on the second line.

Tips for good gradients

  • Colours next to each other on the colour wheel blend smoothly; opposite colours can look muddy in the middle. Add a third colour stop to fix it.
  • Keep text readable: check contrast with the colour picker.
  • Want colours from a photo or logo? Use colour palette from image.

Questions

Do CSS gradients work in all browsers?

Linear and radial gradients work in every current browser. Conic gradients work in all modern browsers since 2020.

Can I use the gradient in Canva or PowerPoint?

Yes. Download it as a PNG at the size you need and use it as a background image.

More free tools