Tools / Gradient generator
Gradient generator
Build multi-stop CSS gradients visually and copy the code.
How to use it
Three quick steps.
- Choose linear, radial or conic, and set the angle.
- Edit the color stops, or add up to five.
- Copy the CSS and paste it into your stylesheet.
Good to know
Get better results.
- Gradients between very different hues can look muddy in the middle. Try colors with similar lightness, or add a middle stop.
- Check text over a gradient at its lowest-contrast spot.
- Conic gradients are great for color wheels and pie-style charts.
Common questions
What is the difference between linear, radial and conic gradients?
Linear gradients blend along a straight line, radial gradients blend outward from a point, and conic gradients sweep around a center like a color wheel.
Will the CSS work in every browser?
linear-gradient, radial-gradient and conic-gradient work in all current browsers.
How do I make a gradient text or border?
Use the gradient as a background, then clip it to text with background-clip: text, or apply it with border-image.
More tools
Keep going with a related tool.