CSS gradient generator
Design gradient backgrounds by dragging color stops along a bar, choose the type (linear, radial or conic) and copy production-ready CSS with a fallback color and a modern OKLCH version without gray dead zones.
Processed 100% in your browser
How can I verify this?
Your files are never uploaded: they are processed on your device. Don’t take our word for it: load the page, go offline and the tool keeps working. Or open your browser’s developer tools (F12), go to the Network tab, and see that no file leaves your device.
Ctrl + Enter runCtrl + C copy result
How to use
- 1Choose the gradient type and adjust the angle or the center.
- 2Drag the stops along the bar; click the bar to add a new one.
- 3Select a stop to change its color or exact position.
- 4Copy the CSS or share a link to your gradient.
Use cases
- Backgrounds for hero sections, cards and buttons.
- Color overlays on top of images.
- Pie charts and color wheels with conic-gradient.
- Try brand color combinations before moving them to Figma or code.
Frequently asked questions
What is the difference between linear, radial and conic gradients?
Linear runs in a straight line at an angle; radial expands from a center as a circle or ellipse; conic sweeps around a point like clock hands and is ideal for pie charts.
What does OKLCH interpolation add?
When colors are mixed in sRGB, the middle of some gradients (for example blue to yellow) turns grayish. Interpolating in OKLCH keeps the transition vivid. The CSS includes an sRGB fallback line for older browsers.
Do I need prefixes like -webkit-?
No. linear-gradient, radial-gradient and conic-gradient work without prefixes in every current browser. A solid fallback color is included too.
Can I share or save a gradient?
Yes. The settings live in the URL: copy the link with “Share” and anyone who opens it sees exactly the same gradient.