Design custom gradients, copy the CSS.
A free CSS gradient generator and gradient color picker: pick the colors, add stops, and copy the CSS for your page. A simple color gradient maker for web developers and students.
Gradient maker
Design custom CSS gradients with multiple color stops.
Color stops (2 or more)
Type
Ready-made ideas
Your CSS
How to use this tool (step by step)
Small steps, each with the reason behind it. Perfect for beginners, and a handy checklist for experts.
Choose the colors
- Look at the list of color stops. Each has a color square, a position (0 to 100) and a remove button.
- Press a color square to change it.
- Press + Add stop for more colors, or click on the bar under the preview.
Why we do this: A gradient is a smooth change from one color to the next. The stops say which colors and where.
Move the stops
- Drag the handles on the bar left or right.
- Or type a number in the position box.
- Watch the preview change.
Why we do this: Moving a stop controls how quickly one color turns into the next.
Choose the type
- Linear goes in a straight line. Use the angle slider to choose the direction.
- Radial spreads out from the center.
- Conic sweeps around like a color wheel.
Why we do this: Different types give very different looks for backgrounds, buttons and artwork.
Copy your CSS
- Press Copy CSS.
- Paste it into your style sheet.
- Or press Download PNG to get a picture.
Why we do this: The CSS line works directly in any website.
Questions people ask
Quick answers.
What does smoother blending mean?
It tells the browser to blend colors in the OKLab space, which avoids dull gray patches between some colors. It works in current browsers; older ones ignore the line, so keep a normal version too.
How many colors can a gradient have?
As many as you like. Most designs use two to four.
Can I use the gradient as text color or border?
Yes, with a few more CSS lines (background-clip: text or border-image). The gradient itself is the same.
How do I add a gradient background in HTML and CSS?
Copy the CSS from the box above and put it on any element, for example:
body {
background: linear-gradient(90deg, #FF006E, #8338EC, #3A86FF);
}What is the difference between linear, radial and conic gradients?
A linear gradient changes color along a straight line. A radial gradient spreads out from a center point like a circle. A conic gradient rotates around a center point, like the slices of a pie.
How do I pick colors for a gradient?
Click a color stop and choose its color with the color field or by typing a HEX code. Colors that sit close together on the color wheel give a soft blend, and opposite colors give a bold one.
Is this a free color gradient generator?
Yes. It is a free gradient generator and gradient color picker. Choose your colors, change the angle or type, and copy the CSS code. No sign-up is needed.
How do I use the gradient CSS in my HTML page?
Paste the code into your stylesheet and set it on the element you want:
.hero {
background: linear-gradient(135deg, #FF006E, #3A86FF);
}