Skip to content

CSS Gradient Generator — Linear, Radial & Conic

Create linear, radial and conic CSS gradients with draggable color stops, an angle dial and presets. Copy the CSS or a Tailwind class. Free and instant.

Color stopsClick to add · drag to move
CSS
background: #fa69c3;
background: linear-gradient(120deg, #7f5af0 0%, #ff6ac1 52%, #ffb86b 100%);
Tailwind
bg-[linear-gradient(120deg,#7f5af0_0%,#ff6ac1_52%,#ffb86b_100%)]

Presets

How to use

  1. Choose linear, radial or conic, or start from a preset or the Random button (R).
  2. Click the color bar to add a stop, drag stops to move them and pick each color. Set the angle, or drag the center on the preview.
  3. Copy the CSS, or the Tailwind arbitrary-value class, and paste it into your project.

Example

background: #ff6ac1;
background: linear-gradient(120deg, #7f5af0 0%, #ff6ac1 52%, #ffb86b 100%);

Details and limitations

The first line is a solid fallback color taken from the middle of the gradient, for very old browsers and for text contrast checks.

Stops accept transparency, which is written as an 8-digit hex color. The Tailwind class uses underscores for spaces, as Tailwind's arbitrary values require.

FAQ

How do I remove a color stop?

Select the stop and press Delete or Backspace, or use the trash button. A gradient always keeps at least two stops.

Do these gradients work in every browser?

Linear and radial gradients work in all current browsers. Conic gradients work in Chrome, Edge, Firefox and Safari 12.1 or later.

Can I move stops with the keyboard?

Yes. Focus a stop with Tab and use the arrow keys (Shift for steps of 10), Home and End. The angle dial works with the arrow keys too.

Format references

Tool page updated: