Choose a gradient type, set the angle and add colour stops with positions. You get a live preview and the CSS declaration ready to paste into your stylesheet.
Loading the tool…
How it works
- Stops are written in order of position as “colour position%”. Linear gradients use the angle in degrees (0deg points up, 90deg to the right).
- Runs entirely in your browser: what you paste is not sent anywhere.
Assumptions and limits
- Colours are opaque hex values. For transparency edit the output to use rgba().
Frequently asked questions
What does 0deg mean?
The gradient line points up (to top). 90deg points right, 180deg down.