CSS Gradient Generator

Design CSS gradients online for free. Pick linear, radial or conic, set up to three color stops with sliders, and watch the live preview update as you change it. Copy the plain CSS or a Tailwind arbitrary-value class straight into your project — no signup, no account, everything in your browser.

Frequently asked questions

What is the difference between linear, radial and conic gradients?

Linear blends colors along a straight line at an angle. Radial blends out from a center point in a circle or ellipse. Conic sweeps colors around a center point like a pie chart — useful for color wheels and progress rings.

What is OKLCH and should I use it?

OKLCH is a newer color format that blends colors more evenly than RGB — no muddy gray middle in a blue-to-yellow gradient. Modern browsers support it in gradients; this tool offers an OKLCH version of your gradient as an optional copy.

How do I use a gradient as a Tailwind class?

Copy the Tailwind class this tool generates, for example bg-[linear-gradient(135deg,#0f766e,#14b8a6)]. It works in Tailwind v3.3+ arbitrary values — paste it as a class on any element.

Why does my gradient look banded?

Banding shows when two colors are far apart in a large area. Adding a middle stop, or using OKLCH interpolation, usually smooths it out.