Magic Gradient Tool
About the Magic Gradient Tool
The Magic Gradient Tool is a gradient explorer: click Random for a fresh color combination or pick one of four hand-made presets, then fine-tune it and copy the CSS. It is built for finding a look quickly when you do not yet know which colors you want.
How the Random gradient is built
Each click of Random rolls the dice on every setting. The type is chosen from linear, radial and sweep, a linear direction or sweep start angle is picked between 0° and 360°, and two to four colors are drawn from the full 16.7 million color sRGB range.
The stops are spaced evenly, so three colors land at 0%, 50% and 100%. Because the colors are fully random, some rolls will clash. Keep clicking until something catches your eye, then adjust it by hand.
The four presets
Aurora is a radial blend from warm yellow #ffe29f through coral and pink to violet #c471f5. Passion Fruit runs #f43b47 to #453a94 at 120°, and Aqua Splash goes from deep teal #13547a to mint #80d0c7 at 90°.
Purple Sunrise is a sweep that starts at 0° and circles from gold through orange and purple to blue. Selecting a preset loads all of its settings into Gradient Options, so it works as a starting point rather than a fixed result.
What is a sweep gradient?
Sweep is the name design apps such as Figma and Flutter use for what CSS calls a conic gradient. Colors rotate around a center point instead of moving outward or across.
The tool writes it as conic-gradient(from 0deg, ...). The Angle slider changes the from value, which rotates where the first color begins.
Turning a random result into a usable one
Random colors often differ a lot in lightness, which can make a gradient look muddy in the middle. Two colors with a similar lightness, or neighbors on the color wheel, usually blend more cleanly.
If you plan to place text on the gradient, watch the Magic Gradient label in the Preview. White text needs fairly dark colors behind it to stay readable.
How to Use the Magic Gradient Tool
- In Pre-made & Random Gradients, click Random for a new combination or click Aurora, Passion Fruit, Aqua Splash or Purple Sunrise.
- In Gradient Options, switch the Gradient Type between Linear, Radial and Sweep if you want a different shape.
- Adjust the Direction slider for linear or the Angle slider for sweep.
- Edit any color stop: choose a new color, type a value, drag its position, use the arrows to swap neighboring colors, or click Add for one more stop.
- Check the Preview, then press Copy CSS under CSS Output.
Frequently Asked Questions
- How is this different from the CSS Gradient Generator?
- This tool starts from presets and random combinations for inspiration. The CSS Gradient Generator starts from a blank two-color gradient and adds a fallback line to its output, which suits building a gradient to an exact spec.
- Can I get the same random gradient again?
- No. Random results are not seeded or saved, so copy the CSS of any gradient you want to keep before clicking Random again.
- Why do some random gradients look muddy?
- Random colors can be far apart in hue and lightness, so the blend in the middle turns gray or brown. Swap one color for a neighbor of the other, or add a middle stop with a cleaner color.
- Is a sweep gradient the same as a conic gradient?
- Yes. Sweep is the design-tool name, and the exported CSS uses conic-gradient().
- Does the copied CSS include a fallback color?
- No, it contains only the gradient. All current browsers support linear, radial and conic gradients; add a solid background line above it if you must support very old browsers.
- Is my gradient saved or sent anywhere?
- No. Everything runs in your browser and nothing is uploaded. Settings reset when you reload the page.