ToolHub

CSS Gradient Generator

Build CSS linear and radial gradients from two colors and an angle, with live preview and midpoint color info. Everything runs in your browser.

Input
Output
CSS
background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
Midpoint color
#a857c5

FAQ

How does the angle work?

0° flows bottom→top, 90° left→right, 180° top→bottom. Diagonals commonly use 45° or 135°.

Can I use more than two colors?

Add color stops to the generated code, e.g. linear-gradient(90deg, #a 0%, #b 50%, #c 100%)—the midpoint color works well at 50%.

Why does my gradient show banding?

Large luminance jumps across wide areas cause banding—add intermediate stops or reduce the color distance.

Related tools