Build linear or radial CSS gradients visually with multiple color stops — get the exact CSS code instantly.
Linear gradients transition colors along a straight line at a specified angle, while radial gradients transition colors outward from a center point in a circular or elliptical pattern.
Add as many color stops as you need using the "Add Color Stop" button, each with its own color and position.
Yes, the linear-gradient() and radial-gradient() CSS functions are supported by all modern browsers without vendor prefixes.
This tool lets you build CSS gradients visually — choosing linear or radial type, setting an angle, and adding multiple color stops — while seeing a live preview and generating the exact CSS code to copy into your stylesheet.
A linear gradient transitions between colors along a straight line at a specified angle — 0° points upward (bottom to top), 90° points rightward (left to right), and so on. A radial gradient instead transitions colors outward from a central point in expanding circles or ellipses, useful for spotlight effects, glowing buttons, or circular color transitions.
Each color stop defines a color and a position (as a percentage) along the gradient. With two stops, you get a simple two-color transition. Adding more stops lets you create more complex, multi-color gradients — for example, a sunset effect moving from orange to pink to purple, or a rainbow-style gradient with many distinct color bands.
All gradient building happens directly in your browser — nothing is sent to a server.
For linear gradients, the angle value determines where the gradient starts and ends. An angle of 0deg runs from bottom to top, 90deg runs from left to right, 180deg runs from top to bottom, and 270deg runs from right to left. Values in between produce diagonal transitions — 45deg, for instance, moves from the bottom-left corner toward the top-right. Because the angle wraps around a full circle, 0deg and 360deg produce the same visual result.
Writing linear-gradient() or radial-gradient() syntax by hand means guessing at percentages and re-saving the file repeatedly just to see how a color transition looks. This tool removes that guesswork — every slider movement updates the preview box immediately, so you can fine-tune colors and stop positions by eye instead of by trial and error in a browser dev tools panel.
Front-end developers can use this to quickly prototype a background treatment before committing it to a design system, while designers without CSS experience can build a gradient visually and hand off working code to a developer without needing to describe the colors or angle in words.
The radial gradient output here uses the circle keyword, which means the gradient spreads evenly in all directions from the center of the element regardless of its width or height. This is a common choice for spotlight effects, glowing icons, or badge backgrounds where you want a perfectly round color transition rather than one stretched to match the element's aspect ratio.
Gradients tend to look most natural when adjacent color stops share some hue or brightness relationship — for example, moving through shades of the same color family, or between colors that are near each other on the color wheel. Jumping between unrelated hues (like bright green directly to deep red) can create a muddy band in the middle of the transition, which is easier to spot and fix when you can see the live preview update in real time.
Two color stops produce a simple fade, but adding three, four, or more stops opens up effects like sunset skies, aurora backgrounds, or brand-colored banners that cycle through a full palette. Each added stop gets its own position percentage, so you can bunch several colors close together for a sharp transition in one area while leaving a slow fade elsewhere in the same gradient.
People searching for this kind of tool often look for phrases like "gradient color picker," "CSS background gradient maker," "two color gradient generator," "gradient hex code generator," and "linear-gradient CSS generator." This tool covers all of these use cases through the same linear and radial controls described above.
The CSS output this tool generates follows the standard syntax: linear-gradient(angle, color1 position1%, color2 position2%, ...) or radial-gradient(circle, color1 position1%, color2 position2%, ...). You can paste this directly into any background or background-image property. Because the syntax is plain CSS with no vendor prefixes needed, it works the same way whether you're styling a div, a button, or the body element itself.