CSS Gradient Generator

Make a background gradient for a hero, button or card. Pick your colors, choose linear, radial or conic, set the angle and copy the CSS or Tailwind class.

Runs in your browser. Nothing you type is uploaded.

Your numbers

Result

Linear gradient#e08a45 → #7c3aed

Angle 135°.

CSS
background: #e08a45; /* fallback */
background: linear-gradient(135deg, #e08a45 0%, #7c3aed 100%);
Tailwind classes
bg-[linear-gradient(135deg,#e08a45_0%,#7c3aed_100%)]

Tailwind v4: bg-linear-135/srgb from-[#e08a45] to-[#7c3aed]

Tailwind v3: bg-gradient-to-br from-[#e08a45] to-[#7c3aed]

How it works

Angles
In CSS, 0deg points up and the angle turns clockwise, so 90deg runs left to right and 180deg runs top to bottom. Conic gradients use the angle as the starting point.
Blending
Standard blending mixes red, green and blue directly, which can turn gray between opposite hues. OKLab blending keeps the middle bright. The tool adds a standard line first as a fallback.
Tailwind
The arbitrary class works in Tailwind v3 and v4, with spaces turned into underscores. Linear gradients also get the v4 bg-linear angle class, and the v3 direction class when the angle is a 45° step.

Questions

How do I add a gradient to text?

Set the gradient as the background, then add background-clip: text and color: transparent to the same element. Keep a solid color fallback for older browsers.

Why does my gradient look muddy in the middle?

Two colors far apart on the color wheel pass through gray when mixed in sRGB. Switch blending to OKLab, or add a third color between them.

Why does the conic gradient repeat the first color?

A conic gradient goes all the way around. Ending on the first color makes the seam at the start angle smooth.

Get CapyLaunch Weekly

New indie launches and the week in AI tools and models, every Monday. Free, and you can unsubscribe anytime.

We send a confirm link first. Privacy

Your launch, this week. Free.

A reviewed listing, a permanent page with a link to your site, and feedback from makers who actually care.

Start my launch →or browse toolsFree to submit. Every listing is reviewed before it goes live.