ColorTool 04
Gradient Generator
Design a two-stop gradient and get the exact CSS. Adjust the angle or switch to radial, then paste it into any element.
Generate CSS
29 / 232Result
WaitingRun the tool and the result appears here. Copy it or download it — nothing leaves this tab.
Privacy
Everything you type stays in this tab and is processed by JavaScript on your device. Nothing is uploaded, logged or stored on a server.
How to use it
Choose the start and end colours with the pickers.
Set an angle for a linear gradient, or switch to radial for a circular falloff.
Copy the background declaration into your stylesheet.
When to use it
Hero backgrounds
Add depth behind a headline without an image request.
Buttons
Give a primary action a subtle two-tone fill.
Placeholders
Use a gradient as a loading placeholder while an image arrives.
Questions
What does the angle mean?
In CSS, 0deg points up and angles increase clockwise. 135deg runs from top-left to bottom-right.
Can I add more colour stops?
This tool builds two-stop gradients. Add extra stops by hand in the copied declaration.
Is text over a gradient readable?
Not guaranteed. Test the lightest and darkest areas with the contrast checker.
How do I make a radial gradient instead of a linear one?
Switch the type to radial and the colours radiate from a centre point instead of running along an angle. Radial suits spotlights and vignettes, while linear is the safer choice for full-width section backgrounds.
Why does my gradient look banded?
Banding appears when two colours are far apart and the gradient covers a large area, because 8-bit screens cannot render every step. Narrow the colour distance, add an intermediate stop, or accept a faint noise layer to break up the bands.