How to make a gradient
- 1Choose Linear or Radial. For linear gradients set the angle with the slider or the direction buttons; for radial, pick circle or ellipse and move the center.
- 2Click the stop bar to add a color stop, drag handles to move them, and select a stop to change its color or exact position. Press Delete to remove the selected stop.
- 3Use Reverse to flip the direction or Random for inspiration.
- 4Copy the CSS (it includes a solid fallback color) or download a PNG in sizes up to 4K.
Linear vs radial gradients
A linear-gradient() blends colors along a straight line. The angle follows CSS conventions: 0deg points up, 90deg to the right and 180deg down. A radial-gradient() blends outward from a center point as a circle or an ellipse that reaches the farthest corner of the box.
Color stops define where each color is fully applied. Placing two stops close together creates a sharp edge; spreading them out creates a soft transition.
Gradient tips
- Gradients between two saturated complementary colors can look gray in the middle. Add a third stop with a brighter mid-tone, or pick neighbouring hues.
- For subtle backgrounds, use two tints of the same hue — try the tints generator.
- Transparent stops (8-digit HEX) let a gradient fade over images or other backgrounds.
Frequently asked questions
Is the generated CSS supported in all browsers?
Yes. Unprefixed linear-gradient() and radial-gradient() work in every modern browser. The snippet also includes a solid background color as a fallback.
Does the PNG match the CSS exactly?
The PNG is drawn with the same geometry CSS uses (gradient line length and farthest-corner radius), so it matches the preview.
How many color stops can I add?
As many as you like. Click anywhere on the stop bar to insert one with the color at that position.