What this gradient generator can do
- Linear, radial, and conic gradients. A Repeating switch makes stripes and rings.
- 2 to 8 color stops. Click the preview bar to add one, drag a handle to move it (Shift snaps to 25% steps), or use its slider.
- Each stop has a color picker, a hex box that accepts 3- or 6-digit codes, and an Alpha slider for transparency.
- Linear direction by exact angle (0–360°) or by direction buttons such as
to rightorto bottom left. - Radial: circle or ellipse, four size keywords, and a movable center. Conic: starting angle and center.
- Smooth blend mixes colors in the OKLCH color space, which avoids the dull gray or brown that can appear between very different colors.
- Output as
background,background-image, or a Tailwind class, with colors in Hex, RGB, or HSL. - 14 presets, Randomize, a Share link that rebuilds your exact gradient, and Download PNG.
How to make a CSS gradient
- Pick a type: Linear, Radial, or Conic. Or start from a preset.
- Set the colors. Click a stop to select it, then choose a color or type a hex code.
- Set the direction with the Angle slider or direction buttons. For radial and conic, move the center point.
- Choose the output and color format, select Copy, and paste into your CSS.
The default gradient gives you this code: background: linear-gradient(90deg, #3B82F6 0%, #A855F7 100%);. It fades from blue to purple, left to right. Need matching colors? Try the Color Generator, or pull exact colors from a logo or photo with the Image Color Picker.
Linear gradient angles explained
In CSS, the angle sets the direction the gradient travels toward. 0deg points up, and the angle turns clockwise. If you leave the direction out, CSS uses 180deg (top to bottom). This tool starts at 90deg (left to right).
| Angle | Same as keyword | Colors move |
|---|---|---|
| 0deg | to top | Bottom to top |
| 45deg | to top right (on a square) | Bottom-left to top-right |
| 90deg | to right | Left to right |
| 135deg | to bottom right (on a square) | Top-left to bottom-right |
| 180deg | to bottom | Top to bottom |
| 270deg | to left | Right to left |
On a wide box, to top right aims at the corner, which is not the same as 45deg.
Linear vs radial vs conic
| Type | How the colors move | Good for |
|---|---|---|
| Linear | Along a straight line at any angle | Page and button backgrounds, hero sections, fades over images |
| Radial | Outward from a center point, as a circle or ellipse | Spotlight and glow effects, soft vignettes |
| Conic | Around a center point, like the hands of a clock | Pie charts, color wheels, loading rings |
All three work in current major browsers without -webkit- prefixes, so the tool outputs standard CSS only.
How to make gradient text in CSS
CSS can fill text with a gradient. Copy a gradient from this tool with the background-image output, then add three more lines to the same rule: -webkit-background-clip: text; background-clip: text; color: transparent;. The background shows only through the letters.
If the gradient stretches across the whole page width, add display: inline-block; so it fits the text. For ready-made ideas, see these CSS gradient examples.
Common Mistakes to Avoid
Thinking 0deg points to the right
Solution:
Using the background shorthand on an element that already has background settings
Solution:
Turning on Smooth blend with no fallback
Solution:
Gradient text that shows a colored box instead of colored letters
Solution:

