DesignLab icon — a colour palette, raised in 3D.

DesignLab • Gradiently

Free CSS Gradient Generator

Design a beautiful linear or radial gradient, preview it live, and copy the ready-to-use CSS code. Free, instant, no sign-up.

✦ Free foreverNo sign-upLinear + radialCopy CSS in one tap

Design your gradient

Pick two or three colours, choose a direction, and watch the preview update live. Copy the CSS when you like it.

Quick directions:

How this gradient generator works

A CSS gradient is a smooth blend between two or more colours, drawn by the browser — no image file needed. Pick colours and a direction, and Gradiently writes the CSS for you.

Linear gradients

background: linear-gradient(135deg, #ff0000, #0000ff);

The angle sets the direction: 90° goes left to right, 180° top to bottom, 135° diagonally down-right. The colours blend in the order you list them.

Radial gradients

background: radial-gradient(circle, #00ff00, #0000ff);

Radial gradients spread out from the centre in a circle (or ellipse), like a spotlight. Great for glows and soft backgrounds.

Tips for good gradients

Frequently asked questions

How do I make a CSS gradient?

Pick two colours and a direction above, then press Get CSS code. Copy the line — for example, background: linear-gradient(135deg, #ff0000, #0000ff); — into your stylesheet.

What is the difference between linear and radial gradients?

A linear gradient blends colours along a straight line at an angle. A radial gradient blends them outwards from a centre point, like a spotlight.

What do the gradient angles mean?

The angle is the direction of the blend: 90° left to right, 180° top to bottom, 270° right to left, 135° diagonally down-right. 0° is bottom to top.

Can I use three colours in a gradient?

Yes. Tick Use it next to Colour 3 and it is added as a middle stop — for example, linear-gradient(135deg, #ff0000, #0000ff, #00ff00).

Do gradients work in all browsers?

Yes — linear and radial gradients work in every modern browser. Add a plain background-color with your first colour as a fallback for very old ones.

Is this gradient generator free?

Yes. Gradiently is 100% free. No account, no sign-up, no limit.

More DesignLab tools

Try another free tool on DesignLab:

← All DesignLab tools