Skip to content
Colors → CSSDeveloper tools

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.

Did this tool work for you?

Used CSS Gradient Generator? Share how it went to help others.

About this tool

About CSS Gradient Generator

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.

CSS Gradient Generator tool

Where gradients are used

Color with depth

Page headers

A background for the top of a page.

ExampleUse two close colors.

Buttons

Give a button some depth.

ExampleSet the angle to 180.

Headings

Fill big letters with color.

ExampleCopy Text with gradient.

Stories

A background for a story.

ExampleDownload 1080 x 1920.

Wallpapers

A calm desktop picture.

ExampleDownload 2560 x 1440.

Tailwind

A gradient as one class.

ExampleOpen the Tailwind tab.

Gradient tips

Good taste in color

Neighbors work best

Colors next to each other, such as blue and purple, look calm.

Grey in the middle?

Turn on Clearer middle colors, or add a third color.

Can text be read?

Check both ends.

Open Contrast Checker

Colors from a photo

Take them from a picture you like.

Open Palette Extractor

Hard edges

Put two colors at the same place.

Build the page

Place things on it.

Open CSS Grid Generator
Built & tested by

HemantInsights

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

Answers and guidanceFrequently Asked Questions
How do I make a gradient in CSS?
Use background with linear-gradient and two or more colors. Here you can copy the finished line.
What does the angle mean?
0 degrees goes up, 90 to the right and 180 down.
Can I use more than two colors?
Yes, up to ten.
How do I make gradient text?
Copy Text with gradient. It clips the background to the letters.
What is OKLab?
A way to mix colors that is closer to how we see them, so the middle stays clear.
Can I save it as a picture?
Yes, as a PNG in five sizes.
Do old browsers show it?
Normal linear and radial gradients work everywhere. With OKLab a first line is added for older ones.
More tools for your workflowRelated Tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.