CSS Gradient Generator
Build linear, radial and conic gradients and copy the CSS
Color stops
- 0%
- 100%
CSS
background: linear-gradient(90deg, #3b62ac 0%, #c026d3 100%);Presets
How to use CSS Gradient Generator
- Pick a type (linear, radial or conic) and an angle, then add 2–6 color stops and adjust their colors and positions.
- See the result in the large preview and copy a single line of background CSS.
- Start from a preset or the random button — the share link keeps all your settings.
Frequently asked questions
What is the difference between linear, radial and conic gradients?
A linear gradient (linear-gradient) changes color along the angle you set, a radial gradient (radial-gradient) spreads out in a circle from the center, and a conic gradient (conic-gradient) sweeps clockwise around the center. The angle (0 to 359°) applies to linear and conic; radial doesn't use it.
Which direction is 90deg in a CSS gradient?
In a CSS linear gradient, 0deg runs from bottom to top, 90deg from left to right and 180deg from top to bottom. The default here is linear-gradient(90deg, #3b62ac 0%, #c026d3 100%).
How many colors can I add?
You can use 2 to 6 color stops and set each one's position from 0 to 100%. Add stop places a new stop in the middle of the widest gap, using the color halfway between its neighbors.
Can I paste the copied code directly?
Yes. You copy a single background declaration such as background: linear-gradient(…); that you can paste straight into your CSS. The share link stores the type, angle and stops, so others can open the same gradient.