Free online CSS gradient generator. Visually design linear, radial, and conic gradients, then copy the CSS code instantly.
How to use Gradient Generator?
Select gradient type (linear, radial, etc.).
Add color stops and set colors.
Copy the generated CSS code.
Frequently asked questions about Gradient Generator
What gradient types are supported?
Linear, radial, and conic gradients are supported.
Can I copy the CSS code directly?
Yes, one-click copy the generated CSS gradient code to apply directly to your website.
Why does a muddy gray band appear in the middle of my gradient?
When two colors sit opposite each other on the wheel, the blend passes through a point where saturation falls close to zero, and that shows up as a dull gray band. Blue-to-orange and red-to-green pairings are the usual culprits. Adding a third color as a mid stop routes the blend around the gray, and choosing two hues that sit near each other on the wheel avoids the problem entirely.
Can I save the gradient as an image file, not just CSS?
Yes, you can download a PNG and drop it straight into a slide background, a social image or a print layout. For a web page, though, the CSS is the better choice: there is no file to download, the gradient stretches to any screen size without breaking, and it never shows the stair-stepping that a scaled-up bitmap does.
How to get the most out of Gradient Generator?
Blend two hues that sit close on the colour wheel; distant pairs turn muddy grey in the middle.
A 135-degree diagonal is the safest default for banners and card backgrounds.
If text will sit on top, check contrast against the lightest stop, not the average colour.