Code & export · Free online tool

Gradient Generator: Make a Two or Three-Color Gradient Fast

Quickly create a two- or three-color gradient and copy the CSS.

A quick gradient maker

Pick a start and end color, set the angle, optionally add a middle color, and this gradient generator gives you the CSS background ready to copy, plus a PNG download for designs and social media.

Copy-ready CSS with a fallback

The CSS includes a solid fallback color for very old browsers followed by the linear-gradient, so you can paste it straight into your stylesheet, WordPress customizer or page builder.

Need more control?

For radial and conic gradients, more color stops, presets and a gradient library, open the full Gradient Studio or the CSS Gradient Generator. To blend colors step by step, use the Color Mixer.

About the Gradient Generator

A fast gradient maker for everyday use. For radial and conic gradients, unlimited stops, presets and PNG export, use the full Gradient Studio. Like every ColorMoodHub tool, it is free and runs entirely in your browser, so nothing you enter or upload is sent to a server.

Gradient Generator: frequently asked questions

How do I make a gradient in CSS?

Use background: linear-gradient(135deg, #color1, #color2); the tool writes this for you.

Can I download the gradient as an image?

Yes, as a 1920×1080 PNG.

How do I change the gradient direction?

Move the angle slider: 0° goes up, 90° goes right, 180° goes down.

Can I add more than three colors?

Use the CSS Gradient Generator or Gradient Studio for unlimited stops.

All 45 tools