01 / Linear
Along a line
Colours blend along an angle: 90 degrees is left to right, 180 is top to bottom.
Free tool
Pick linear, radial or conic, add as many colour stops as you like, type a HEX code (see-through too) or slide them into place, set the angle or the centre, reverse or roll a random blend, and copy the CSS or a Tailwind class. The preview updates as you go, your last gradient is kept in this browser, and Copy link opens the same gradient anywhere.
Need a custom tool, app or website? Contact us →Colour stops
Type a HEX code with two more digits for see-through, like #7c52ff80, or transparent.
Presets
Made in your browser. Nothing is sent anywhere.
Three kinds
01 / Linear
Colours blend along an angle: 90 degrees is left to right, 180 is top to bottom.
02 / Radial
Colours spread out in a circle or an ellipse.
03 / Conic
Colours sweep around the centre like a colour wheel or a pie.
Guide
A CSS gradient generator builds the code for a smooth blend of colours that you can use as a background on any web page element, with no image file to load. This one makes linear, radial and conic gradients with as many colour stops as you need, shows a live preview, and gives you one background line to copy. Your last gradient stays in this browser, so you can come back to it.
#7c52ff80, and transparent, make a stop see-through.The default gradient gives you this:
background: linear-gradient(135deg, #7c52ff 0%, #f15bb5 55%, #fee440 100%);
The tool always writes the stops in order of position, even if you added them in a different order.
| Angle | Linear gradient runs | Conic gradient starts |
|---|---|---|
| 0° | Bottom to top | At the top |
| 90° | Left to right | At the right |
| 135° | Top left to bottom right | Between right and bottom |
| 180° | Top to bottom | At the bottom |
| 270° | Right to left | At the left |
On a box that is not square, 135° is not exactly corner to corner. If you need the blend to hit the corners on any shape, change 135deg to to bottom right by hand after you paste.
Tick Solid colour first, as a fallback to put a plain background line above the gradient, using the first stop's colour. A browser that cannot draw the gradient keeps the solid colour, and text on top stays readable while the page loads.
Code as a Tailwind class writes the gradient as one arbitrary value, like bg-[linear-gradient(135deg,#7c52ff_0%,#fee440_100%)], with underscores where the spaces were. Tailwind's docs list bg-[<value>] as setting background-image to that value (Tailwind CSS, checked 18 Oct 2026).
Paste the line inside any rule, for example .hero { background: linear-gradient(...); }. For gradient text, add these three lines next to it: -webkit-background-clip: text;, background-clip: text; and color: transparent;. To keep a solid colour for anything that cannot show the gradient, put background-color with one of your colours just above the gradient line.
Need the gradient as a picture file instead? Use the gradient background maker. To pick colours that go well together, try the colour palette generator, and for a shadow under the same card, the box shadow generator.
Questions
Pick the type, set the colours and angle, then press Copy code and paste it into your stylesheet.
As many as you like. Press Add a colour.
Linear, radial and conic gradients work in every current browser.
For a PNG or JPG background, use the gradient background maker.
Your last gradient is kept in this browser.
Copy the gradient here, then add -webkit-background-clip: text;, background-clip: text; and color: transparent; to the same rule. The gradient then shows only through the letters.
Banding shows when two close colours stretch over a large area, so there are few shades to fill it. Pick colours a little further apart, or add a middle stop, to give the blend more steps.
Yes. Type an eight-digit HEX code in a stop, like #7c52ff00 for fully clear or #7c52ff80 for half, or type transparent. The code then uses an rgba() colour for that stop.
Both run left to right. The difference shows on diagonals: an angle keeps the same slope on any box, while a keyword like to bottom right always aims at the corner.