CSS Gradient
Generator

Generate beautiful CSS gradients — linear, radial or conic — and copy the code instantly. Live preview as you adjust colors and angle.

Linear · Radial · Conic1-click copyCSS-ready

① Choose gradient type & angle ② Pick two colors ③ Copy the CSS

#FF6B6B
#4ECDC4
Generated CSS
background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
Linear

Transitions colors along a straight line defined by an angle (0–360°). 0° goes from bottom to top, 90° from left to right.

Radial

Colors radiate from a central point outward in an elliptical or circular pattern. Great for spotlight and glow effects.

Conic

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.

Frequently asked questions

A CSS gradient is a smooth transition between two or more colors generated entirely by the browser without image files. Defined using background or background-image properties, gradients are resolution-independent, infinitely scalable and load instantly.
A linear-gradient() blends colors along a straight line. The direction is controlled by an angle in degrees (0° = bottom to top, 90° = left to right, 180° = top to bottom) or keywords like "to right" or "to bottom right". Stop positions (%) define where each color starts and ends.
Linear gradients blend along a straight line. Radial gradients emanate from a focal point outward in circular or elliptical shapes. Conic gradients rotate colors around a center point, like a color wheel or pie chart slice.
Gradients are set on the background or background-image property: background: linear-gradient(90deg, #FF6B6B, #4ECDC4). They can be layered with other backgrounds and even combined with images using comma-separated values.
Linear and radial gradients are supported in all modern browsers including Chrome, Firefox, Safari, Edge and Opera. Conic gradients are supported in all modern browsers since 2021. No vendor prefixes are needed for current browser versions.
Copy the generated CSS and paste it directly into your stylesheet. In Figma you can recreate gradients using the fill panel. Gradients work great for hero backgrounds, card overlays, button states and decorative elements.
Yes, CSS gradients support unlimited color stops. Add multiple colors separated by commas with optional stop positions: linear-gradient(90deg, red 0%, yellow 50%, blue 100%). This tool generates two-stop gradients for simplicity, but the syntax is easily extended.

Explore Our Network