CSS Gradient Generator — Linear, Radial, Conic
- This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.
Drag stops to move them. Click the bar to add a stop.
Gradient
Selected stop
background: linear-gradient(135deg, rgb(249, 115, 22) 0%, rgb(219, 39, 119) 100%);
About this tool
Click the gradient bar to add a colour stop and drag stops to reposition them. Pick a type — linear for classic fades, radial for spotlights and vignettes, conic for pie and colour-wheel effects — and set the angle.
Presets give you a starting point you can tweak, and the preview shows the result at full size so banding or muddy midpoints are easy to spot.
The output is a standard CSS background declaration that works in every modern browser, or a Tailwind arbitrary-value class.
Frequently asked questions
Why does my gradient look grey in the middle?
Fading between two saturated opposite colours passes through grey in sRGB. Add a brighter colour stop in the middle to keep the transition vivid.
Do CSS gradients work in all browsers?
Linear and radial gradients work everywhere; conic gradients work in all current browsers.
Can I use a gradient as text colour?
Yes — set the gradient as the background, then add background-clip: text and color: transparent.