Three kinds of gradient
| Type | What it does | Good for |
|---|---|---|
| Linear | Colours change along a straight line, at the angle you set | Backgrounds, banners, buttons, overlays on photos |
| Radial | Colours spread out in a circle from the centre | Spotlight effects, soft glows, focus behind a product |
| Conic | Colours sweep around the centre like the hands of a clock | Colour wheels, pie-like shapes, bold abstract backgrounds |
Every gradient is a list of colour stops: a colour and a position from 0% to 100%. Between two stops the colour blends smoothly. Put two stops at the same position and the blend disappears, leaving a hard edge, which is how stripes and two-tone splits are made.
Reading the CSS
The generator writes the same code a browser understands, so what you see in the preview is what your website shows. A linear gradient looks like this: linear-gradient(135deg, #6366f1 0%, #ec4899 100%). The angle comes first, then each stop's colour and position.
- Angles follow CSS: 0° points up, 90° to the right, 180° down and 270° to the left. 135° runs from the top left to the bottom right.
- Radial gradients are written as a circle from the centre that reaches the farthest corner.
- Conic gradients start at the angle you set and go clockwise all the way round.
- The Tailwind class is the same gradient as an arbitrary value, such as bg-[linear-gradient(…)], with spaces turned into underscores the way Tailwind expects.
All current versions of Chrome, Edge, Firefox and Safari draw all three types, so the code works without prefixes.
Gradients that look smooth
- Colours close on the wheel blend cleanly. Blue to purple, or orange to pink, stays bright all the way.
- Opposite colours can turn grey in the middle. A blend from blue to orange passes through a muddy grey. Add a third stop in between, such as a purple or a pink, to keep it vivid.
- Keep the lightness change gentle for backgrounds behind text, so the words stay readable from one side to the other.
- Use transparency for overlays. A stop with low opacity, from the picker's opacity slider, fades a colour into whatever is behind it, which is how text is made readable over a photo.
Saving a gradient as an image
For places that don't take code, such as slides, social posts or a phone wallpaper, download the gradient as a picture. Choose a size first:
| Size | Fits |
|---|---|
| 1920 × 1080 | Slides, desktop wallpapers, video backgrounds, YouTube |
| 1080 × 1080 | Square social posts |
| 1080 × 1920 | Stories, Reels and phone wallpapers |
| 3840 × 2160 | 4K screens and large prints |
PNG is a picture at exactly that size. SVG is a vector file that stays sharp at any size and can be edited in design apps; a conic gradient in the SVG is drawn as many thin slices, since SVG has no conic gradient of its own. To use one as the background of a design, upload the PNG into a design started from the templates, such as a social post or a presentation.
Very large, very gentle gradients can show faint steps (called banding) on some screens, because each colour channel has only 256 levels. Picking colours a little further apart, or adding a stop in the middle, usually hides it.
Save and share your gradient
The gradient is kept in the page's address as you edit, so copying the link shares the exact gradient and reloading the page brings it back. Everything is drawn in your browser: nothing is uploaded, and there is no account to make.
Updated