Free tool · copy-ready CSS

CSS Gradient Generator

Design a gradient by eye, then copy the CSS for backgrounds, buttons or headings.

CSS

Type

Colour stops

Presets

Designing a new look?

Get a modern website built around your brand.

From colours and gradients to layout and motion, I design and build websites that look current and load fast.

Plan a redesign

Gradient tips

  • Two or three colours look cleanest. Pick neighbours on the colour wheel for a calm blend.
  • Keep text readable: check your heading colour against both ends of the gradient with the contrast checker.
  • Subtle wins: a gradient between two close shades often looks more premium than a rainbow.

Frequently asked questions

Do CSS gradients work in all browsers?

Linear and radial gradients work in every modern browser. Conic gradients work in all current versions of Chrome, Edge, Firefox and Safari. The generated code includes a solid background colour as a fallback.

Are gradients better than background images?

For simple colour blends, yes: a gradient is a few bytes of CSS instead of a downloaded image, so it loads instantly and stays sharp at any size.

How do I add a gradient to text?

Use the "Text" option: it outputs the background-clip code that fills text with the gradient, popular for hero headings.

How do I use this in WordPress or Elementor?

Paste the background line into Additional CSS for a class, or use Elementor's Gradient background with the same colours and angle.

More design tools