Gradient Generator
Build linear, radial, and conic CSS gradients.
background-image: linear-gradient(90deg, #00C8E0 0%, #7C3AED 100%);How to use Gradient Generator
What this tool does
The Gradient Generator builds CSS gradients visually and hands you the exact
declaration to paste into a stylesheet. You pick a gradient type — linear,
radial or conic — add as many colour stops as you need, and set each stop’s
colour and position along the blend. Linear and conic gradients also expose an
angle control. A live preview box renders the gradient as you adjust it, so
what you see is precisely what the background-image value produces. Nothing
is approximated and nothing is uploaded; every change is computed instantly in
the browser.
Use cases
Gradients are everywhere in modern interface and brand work. A two-stop linear gradient makes a hero section feel deliberate instead of flat. Radial gradients create soft spotlights behind a logo or a glow around a call-to-action button. Conic gradients power pie-chart segments, colour wheels and loading spinners without a single image file. Designers building a brand system can lock in a signature gradient and reuse the copied CSS across the site, decks and social templates. Developers prototyping a dark-mode surface can test how a subtle gradient reads against text before committing. Hobbyists making wallpapers, banners or game UI get a fast way to explore colour combinations without opening a heavyweight editor.
Gradients also do practical layout work. A faint vertical fade behind a sticky header keeps it distinct from content as the page scrolls. A diagonal gradient on a feature card draws the eye toward a price or a heading. Product teams use near-flat gradients on buttons and badges to suggest a tactile, raised surface, while marketing pages lean on bolder blends for backgrounds, dividers and section transitions. Because the output is plain CSS, the same gradient travels unchanged from a landing page to an email template to a slide deck.
A worked example
Suppose you want a calm hero background that shades from a deep navy at the top
to a slightly lighter blue lower down. Choose the linear type, set the angle
to about 160 degrees so the blend runs gently downward, and place two stops:
#0b1f3a at 0% and #1c3a63 at 100%. The preview shows a quiet, premium fade.
To add a soft highlight, insert a third stop — a marginally lighter blue around
the 35% mark — and the gradient gains a subtle band of light without any hue
jump. Copy the declaration and you have a reusable hero surface in seconds.
How to use it
- Choose a gradient type — linear, radial or conic — with the segmented switcher at the top.
- For linear and conic gradients, drag the angle slider to set the direction or starting rotation.
- Edit each colour stop: use the native colour picker or type a hex value, and drag the position slider to place the stop between 0% and 100%.
- Click Add stop to introduce another colour, or Remove to drop one. A gradient always keeps at least two stops.
- Watch the live preview update, then press Copy CSS to copy the full
background-imagedeclaration. - Use Reset to return to the default two-stop gradient at any time.
Tips
Keep gradients subtle for large surfaces — a small shift in lightness reads as
premium, while a large hue jump can feel loud. For accessibility, make sure any
text sitting on a gradient keeps enough contrast against the darkest and
lightest points, not just the average. Place two stops at the same position
to create a crisp stripe instead of a fade. With conic gradients, rotate the
start angle so the seam where the sweep wraps is hidden behind other elements.
Because gradients are images, you can stack several with commas and add a solid
background-color underneath as a fallback for very old browsers. Reach for
the background shorthand when you want to set the gradient and a fallback
colour in one line, but prefer background-image when you are layering a
gradient on top of an existing background or animating only the image — it
keeps colour, position and image concerns separate and avoids accidentally
resetting other background properties.
Related techniques
Once your gradient is set, pair it with the Box-Shadow Generator to lift a card
off the page, or the Text-Shadow Generator to keep headings legible over a
busy blend. The Color Converter is useful for translating a brand hex into the
RGB or HSL form some design tools expect, and a contrast checker confirms that
text remains readable. Gradients also combine well with CSS mask-image and
background-blend-mode for richer effects — the declaration this tool produces
is a standard value you can drop into any of those workflows.
Frequently asked questions
What is the difference between linear, radial and conic gradients?
How do colour stop positions work?
Why does my gradient look banded or stepped?
Can I use the generated CSS as a background image?
Is anything I create uploaded to a server?
Related tools
Box-Shadow Generator
Design CSS box-shadows with a live preview.
Palette from Base Color
Generate a full palette from a single base color.
Color Converter
Convert colors between HEX, RGB, HSL, HSV, and CMYK.
CSS Triangle Generator
Generate pure-CSS triangles in any direction.
CSS Transform Generator
Build CSS rotate, scale, and skew transforms.
CSS Gradient to Image
Render a CSS gradient as a downloadable image.