Docelora
ToolsAboutContact
Design tools

CSS Gradient Generator

Design CSS gradients visually: linear, radial or conic, with as many colour stops as you like and optional positions. The preview updates as you type.

Quick answer: list one colour per line (optionally with a position like 50%), choose the type and angle, and copy the CSS. A solid fallback colour is included for very old browsers.

CSS Gradient Generator

Linear · radial · conic · live preview

Runs on your device: everything you type or open is processed in this browser tab. Nothing is uploaded to Docelora or anyone else.

Gradient types

TypeLooks likeTypical use
linear-gradientColours blend along a lineBackgrounds, buttons, overlays
radial-gradientColours spread from a pointSpotlights, soft vignettes
conic-gradientColours sweep around a centrePie charts, colour wheels
1. Add coloursOne per line.
2. Choose type and angleWatch the preview.
3. Copy the CSSPaste into your stylesheet.

Tip: for text over gradients, check contrast against the lightest part of the gradient.

Related tools

Frequently asked questions

How many colours can a gradient have?

As many as you like.

What are stop positions?

Optional percentages saying where each colour sits.

What does the angle mean?

0° goes bottom-to-top, 90° left-to-right, 180° top-to-bottom.

Do I need vendor prefixes?

No – all current browsers support unprefixed gradients.

Why is there a solid background line?

A fallback for very old browsers.

Can I animate gradients?

Not directly; animate background-position or use @property.

Can I make hard edges?

Give two stops the same position.

Does it support transparency?

Yes – use rgba(), hsla() or 8-digit hex.

Can I use OKLCH colours?

Yes, any CSS colour works.

What is a conic gradient?

Colours rotate around a centre, like a pie chart.

Can I layer gradients?

Combine several in one background property, separated by commas.

Do gradients affect performance?

No meaningful impact compared with images.

Can I use a gradient on text?

Yes, with background-clip: text.

How do I make a radial ellipse?

Choose Radial and Ellipse.

Is it free?

Yes – no sign-up and no watermark.

Does anything get uploaded?

No – it all runs in your browser.

Can I use the output commercially?

Yes – the generated code is yours.

Which browsers support the CSS?

All current versions of Chrome, Edge, Firefox and Safari.

Does it work on a phone?

Yes – the tool and preview are responsive.

Can I copy the CSS?

Yes – use the Copy button.

Last reviewed: 8 November 2026.