Creating Multi-Color CSS Gradients That Look Modern
Go beyond two-color gradients with multi-stop linear and radial CSS gradients, and learn to keep them smooth, balanced, and readable.
Read GuideGradient
Build three-stop linear gradients with a middle color and copy-ready CSS.
Gradient
This multi-color gradient generator builds a three-stop linear gradient from a start, middle and end color, with an angle control to set the direction. The middle color is what sets it apart from a simple two-color gradient: it lets you steer the blend through a hue you choose, create sunset or aurora effects, or bridge two colors that would otherwise meet in a muddy band. A live preview shows the result, and the CSS is ready to copy.
When the start and end colors sit far apart on the color wheel, such as blue and yellow, choose a middle color whose hue lies between them along the route you want the blend to take, for example a teal or green between blue and yellow. That keeps every part of the transition saturated instead of passing through gray. To shift where the middle color peaks, add positions to the copied CSS, such as #4f46e5 0%, #ec4899 30%, #f59e0b 100%, which moves the middle color toward the start and gives the second half of the blend more room.
FAQ
List all three colors in linear-gradient() after the direction, for example background: linear-gradient(90deg, #4f46e5, #ec4899, #f59e0b);. Without explicit positions, the browser spaces them evenly at 0%, 50% and 100%. This generator writes that line from the start, middle and end colors you choose.
Add a percentage or length after any color, such as #ec4899 30%, to set where that color stop sits along the gradient line. Two colors given the same position create a hard edge instead of a blend, which is how CSS stripes are made. You can add these positions by hand to the CSS this tool generates.
Yes, linear-gradient() accepts any number of comma-separated color stops. This tool focuses on three stops, which covers most designs, but you can extend the copied CSS with more colors in the same format. Three or four stops usually look cleaner than a long rainbow.
A two-color gradient blends directly from one color to the other, so the midpoint is simply whatever lies between them. A multi-color gradient adds intermediate stops, letting you choose the colors the blend passes through. Use the Gradient Generator for simple two-tone backgrounds and this tool when you need more control or a richer effect.
Learn more
Go beyond two-color gradients with multi-stop linear and radial CSS gradients, and learn to keep them smooth, balanced, and readable.
Read GuideBuild glassmorphism CSS that works: backdrop-filter blur with the -webkit- prefix, @supports fallbacks, readable text on busy backgrounds, and fast mobile UI.
Read GuideCreate cleaner gradients for hero sections, cards, and product surfaces without banding, muddy blends, or cheap-looking transitions.
Read Guide