CSS Gradient Generator

CSS Gradient Generator

Build linear, radial and conic gradients, check text contrast and copy CSS or Tailwind.

Live preview
Type
135°

Your gradient

Linear 135°

Stops 3
Text —
Fallback
—
White text
—
Black text
—
  1. Type
    Linear
    Straight line
  2. Direction
    135°
    Flows down and to the right
  3. Color stops
    3 stops
    Blended in sRGB
  4. Paste into
    background
    Any element

Build your gradient

Text on top

—

 

Color stops

—

 

Blending

—

 

Fallback

—

 

Type and direction

The same type and angle as the panel at the top.

0° points up

Color stops

Up to 8. Opacity below 100% shows the checkerboard behind it.

Click the bar to add a stop at that point.

    Output

    How the CSS is written.

    background: linear-gradient(135deg, #4f46e5 0%, #c026d3 50%, #f97316 100%);

    Preview

    The checkerboard shows through transparent parts.

    Presets

    Starting points. Loading one replaces the current gradient.

    Scroll to Top