CSS Gradient Generator
Build linear, radial and conic gradients, check text contrast and copy CSS or Tailwind.
Type
Your gradient
Linear 135°
Stops
3
Text
—
Fallback
—
White text
—
Black text
—
- TypeLinearStraight line
- Direction135°Flows down and to the right
- Color stops3 stopsBlended in sRGB
- Paste intobackgroundAny 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
50%
50%
Color stops
Up to 8. Opacity below 100% shows the checkerboard behind it.
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.