Gradient CSS Generator
Create CSS gradients with a visual editor. Build linear, radial, and conic gradients with live preview.
Gradient CSS Generator tool
Example
Input: Linear gradient, angle 90, stops #C4653A at 0% and #FAF7F2 at 100%
Result: background: linear-gradient(90deg, #C4653A 0%, #FAF7F2 100%);
An angle of 90deg runs the gradient from left to right, blending from the first color stop to the last across the element.
Linear Gradient Angles and Directions
| Angle | Color flows | Keyword |
|---|---|---|
| 0deg | Bottom to top | to top |
| 45deg | Bottom left to top right | to top right (square boxes) |
| 90deg | Left to right | to right |
| 135deg | Top left to bottom right | to bottom right (square boxes) |
| 180deg | Top to bottom | to bottom (default) |
| 225deg | Top right to bottom left | to bottom left (square boxes) |
| 270deg | Right to left | to left |
| 315deg | Bottom right to top left | to top left (square boxes) |
Per the CSS Images spec. Corner keywords match the angle only when the box is square.
- Select the gradient type - linear, radial, or conic - from the Gradient Type menu, or click a preset to start from a ready-made gradient.
- Add color stops with the Add Stop button (up to 10), then set each stop's color and percentage position.
- For linear gradients, drag the Angle slider; for conic gradients, set the Start Angle. Radial gradients are drawn as a circle from the center.
- Preview the gradient updating in real time on the large preview area as you adjust colors, positions, and angles.
- Copy the generated CSS code from the output panel and paste it directly into your stylesheet.
How CSS Gradients Work
A CSS gradient is a background that blends two or more colors, drawn by the browser instead of loaded as an image. This generator builds linear, radial and conic gradients with a live preview. It then gives you a ready rule such as background: linear-gradient(90deg, #C4653A 0%, #FAF7F2 100%);
Every gradient is a list of color stops. A stop is a color plus a position from 0% to 100%. You can use 2 to 10 stops here, and the tool sorts them by position in the code it writes. Two stops at the same position make a hard edge instead of a blend, which is handy for stripes.
The three types differ in how the colors travel. A linear gradient runs in a straight line at the angle you set: 0deg points up, 90deg points right and 180deg points down. A radial gradient spreads out from the center in a circle. A conic gradient sweeps around the center like a clock hand, starting from the angle you choose.
Gradients add nothing to download and stay sharp at any size, so they suit hero sections, buttons and placeholders. Six presets give you a quick start. To choose stop colors that go well together, try the Color Palette Generator first.
Sources
Frequently Asked Questions
Related Tools
Color Picker
Pick any color visually and get values in hex, RGB, HSL, and CMYK. Interactive saturation panel and hue slider.
Color ToolsColor Palette Generator
Generate harmonious color palettes. Create complementary, analogous, triadic, and split-complementary schemes.
Color ToolsHex to RGB Converter
Convert hexadecimal color codes to RGB values instantly. Supports shorthand and 8-digit hex with alpha.
Color ToolsHSL to Hex Converter
Convert HSL color values to hexadecimal codes. Enter hue, saturation, and lightness for instant hex output.
Color Tools