CSS Gradient
Generator
Generate beautiful CSS gradients — linear, radial or conic — and copy the code instantly. Live preview as you adjust colors and angle.
① Choose gradient type & angle ② Pick two colors ③ Copy the CSS
background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);Transitions colors along a straight line defined by an angle (0–360°). 0° goes from bottom to top, 90° from left to right.
Colors radiate from a central point outward in an elliptical or circular pattern. Great for spotlight and glow effects.
Colors rotate around a center point like a color wheel. Perfect for pie charts, spinners and angular designs.
How CSS gradients work — linear, radial and conic
CSS gradients are generated entirely by the browser without any image files, making them resolution-independent and lightweight. A linear gradient blends color stops along a straight axis defined by an angle — e.g. linear-gradient(to right, #FF6B6B 0%, #4ECDC4 100%). A radial gradient emanates from a focal point outward: radial-gradient(). A conic gradient sweeps colors angularly around a center point: conic-gradient(). All three are applied via the background or background-image property and supported in all modern browsers. Using stop positions (0% to 100%) you can precisely control where each color begins and ends, enabling complex multi-color transitions.