Create linear, radial, and dark CSS gradients with live preview — copy the code instantly.
Create beautiful CSS gradients
background: linear-gradient(135deg, #667eea, #764ba2);Pick linear, radial, or conic gradient. Linear gradients flow in a straight line, radial gradients radiate from a center point, and conic gradients sweep around a point.
Add color stops and adjust their positions. You can create dark gradient CSS, black gradients, vibrant multi-color gradients, or anything in between using the color picker.
The CSS gradient code is generated in real time. Copy it and paste it directly into your stylesheet as a background property — it works on any HTML element.
background: linear-gradient(to right, #ff0000, #0000ff);background: radial-gradient(circle, #ff0000, #0000ff);background: linear-gradient(135deg, #1a1a2e, #16213e);Common questions about CSS Gradient Generator