← All tools/Generators/Design/Gradient Generator
Gradient Generator
Build a CSS gradient from two colours and an angle, and copy the code.
Your gradient
How it works
linear-gradient(angle, colour1, colour2) radial-gradient(circle, colour1, colour2)
Worked example: #673DE6 to #19a974 at 90 degrees gives background: linear-gradient(90deg, #673DE6, #19a974); — a left-to-right blend from purple to green.
Frequently asked questions
What does the angle do?
0 degrees points upward, 90 degrees points right, 180 degrees points down. The blend runs along that direction.
What is the difference between linear and radial?
Linear blends in a straight line across the element; radial blends outward from the centre in a circle.
Can I use this code anywhere?
Yes — paste it as the background of any element in your own CSS. It needs no library and works in all modern browsers.
More tools
Tell us what you think
Loving this tool, or stuck on something? Tell us — it takes a minute.
We’ll only use your name and email to reply if needed. The tool and page are filled in for you.