CSS Gradient Generator
Build linear, radial and conic gradients with live preview.
0° points upward and angles increase clockwise.
What does CSS Gradient Generator do?
Design CSS gradients visually with as many colour stops as you need. Linear, radial and conic types are supported, with control over angle, position and stop placement, and the CSS is generated as you go.
How to Use CSS Gradient Generator
- 1Choose a gradient typeLinear is the most common.
- 2Set your coloursAdd stops and drag them into position.
- 3Adjust the angleOr the centre point for radial and conic.
- 4Copy the CSSPaste it straight into your stylesheet.
Key Features
- Linear, radial and conic gradient types
- Unlimited colour stops with draggable positions
- Angle control for linear, and shape and position for radial
- Full-width live preview
- Copy-ready CSS, including a gradient-text variant
- Random gradient button and a set of curated presets
Frequently Asked Questions
How do CSS gradient angles work?
0deg points upward and angles increase clockwise, so 90deg goes left to right and 180deg goes top to bottom. This differs from the mathematical convention, which is a common source of confusion.
Why does my gradient look muddy in the middle?
Because interpolation happens in sRGB, so blending complementary colours passes through grey. Adding an intermediate stop of a colour you actually want fixes it. Modern CSS also allows interpolation in oklab, which avoids the problem.
How do I apply a gradient to text?
Set the gradient as background, then background-clip: text with a transparent text colour. The generator produces that snippet ready to copy.
What is a conic gradient for?
Colours sweeping around a centre point rather than radiating outward. It is what makes pie charts, colour wheels and progress rings possible in pure CSS.
Everything is generated in your browser. Nothing is sent to a server, so results are private and the tool keeps working offline.
Related Tools
Colour Palette Generator
Build harmonious colour palettes from one base colour.
CSS Box Shadow Generator
Design box shadows visually and copy the CSS.
CSS Border Radius Generator
Create rounded and organic shapes with live preview.
Colour Converter
Convert between HEX, RGB, HSL, HSV and CMYK.