CSS Gradient Generator
Make linear, radial and conic gradients with up to ten colors. Copy CSS, Tailwind or SVG, or download the gradient as a PNG.
Make linear, radial and conic gradients with up to ten colors. Copy CSS, Tailwind or SVG, or download the gradient as a PNG.
Used CSS Gradient Generator? Share how it went to help others.
About this tool
CSS Gradient Generator makes smooth color transitions for backgrounds, buttons and headings. Choose linear, radial or conic, start from one of ten ready gradients or a random one, and change it while the large preview follows. A gradient can have from two to ten colors. Each has its place along the line, its opacity and a hex value you can type or paste. Click the color bar to add a color at that place; it begins with the color the gradient has there, so nothing jumps. Two colors at the same place make a hard edge, and Reverse turns the whole order around. For linear gradients set the angle with the slider or one of eight arrows. For radial and conic gradients move the center, and choose a circle or an ellipse. Repeat turns a short gradient into stripes or rings. The option Clearer middle colors mixes in the OKLab color space. Ordinary gradients between strong opposite colors, such as green and pink, often turn grey in the middle, and OKLab keeps them fresh. Because older browsers do not know it, the code then has two lines: a normal gradient first, and the better one after it. The code is ready as CSS, as CSS for text filled with a gradient, as a Tailwind class and, for linear gradients, as an SVG picture. You can also download the gradient as a PNG, for example as a wallpaper, a story background or a picture for link previews. The PNG is worked out with the same rules browsers use; in our test the colors differed from the picture drawn by Chrome by no more than two steps out of 255, except at hard edges. See-through colors stay see-through. If text will stand on the gradient, check that it can be read on its lightest and on its darkest part.

Or start from a ready gradient.
Linear, radial or conic.
Try the clearer colors.
CSS, Tailwind, SVG or PNG.
Each with place and opacity.
Linear, radial and conic.
OKLab without grey middles.
Five useful sizes.
Color with depth
A background for the top of a page.
ExampleUse two close colors.
Give a button some depth.
ExampleSet the angle to 180.
Fill big letters with color.
ExampleCopy Text with gradient.
A background for a story.
ExampleDownload 1080 x 1920.
A calm desktop picture.
ExampleDownload 2560 x 1440.
A gradient as one class.
ExampleOpen the Tailwind tab.
Good taste in color
Colors next to each other, such as blue and purple, look calm.
Turn on Clearer middle colors, or add a third color.
Put two colors at the same place.
Senior Software Engineer · Developer of Toolyconvert
Hemant developed CSS Gradient Generator and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 25 November 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.