Build linear and radial gradients visually. Add colour stops, adjust positions, and copy the CSS with one click.
This gradient generator turns visual choices into valid CSS. Choose a linear or radial gradient, select your colours, move each stop to control where transitions happen, and copy the finished background declaration straight into your stylesheet.
For linear gradients, the angle controls the direction of the blend. A value of 0° runs bottom to top, 90° runs left to right, and 180° reverses the vertical direction. Radial gradients spread outward from the centre and do not use an angle.
Best for directional backgrounds, buttons, hero sections and subtle overlays. Adjust the angle from 0° to 360°.
Useful for glows, spotlight effects and soft colour transitions that radiate from the centre.
Add up to six stops and position each one from 0% to 100% to control where colours appear and blend.
The generated declaration updates instantly, so you can copy it directly into a class, component or inline style.
Two stops are often enough for a clean interface gradient. Additional stops give you more control for richer backgrounds, but too many strong colours can make text harder to read. If the gradient sits behind text or a button, run the finished colours through the contrast checker.
If you need colours before building the gradient, try the random palette generator for inspiration or create a more systematic set with the brand colour palette generator.
A linear gradient blends colours along a straight line at a chosen angle. A radial gradient blends outward from a central point in a circular shape.
This tool supports up to six colour stops. Each stop has its own colour and position between 0% and 100%.
Yes. Copy the generated background: declaration and paste it into any CSS selector that accepts a background image.
No. Linear and radial gradients are rendered by the browser from CSS, so there is no separate image asset to download or host.