Skip to content
ChromaBrew
Go Pro

CSS gradient generator

Build linear, radial and conic CSS gradients visually. Pick colors, adjust angles and stops, then copy production-ready CSS. Free, no sign-up.

Build linear, radial and conic CSS gradients visually — pick colors, set angles and drag color stops — then copy production-ready CSS. The code updates live.

Switch gradient types and stop colors without touching the output; the generated CSS is standard-compliant and ready to paste into any stylesheet.

The most common professional use is the scrim: a transparent-to-near-black linear gradient laid over a photo so white headline text stays legible. Build it with two stops of the same hue (transparent → ~80% black) rather than two different colors — it reads as lighting, not decoration, and never fights the page's palette.

90°

Click the bar to add a stop

0%
50%
100%
background: linear-gradient(90deg, #ff006e 0%, #3a86ff 50%, #8338ec 100%);

Want the full design system from a color? Open the color palette generator to create accessible palettes, semantic tokens, light and dark themes, and production-ready CSS — all from a single color.

How to use this tool

  1. Pick a gradient type: linear, radial or conic.
  2. Click the gradient bar to add color stops, then drag or adjust each one.
  3. Copy the generated CSS and paste it into your stylesheet.

Frequently asked questions

What gradient types are supported?
Linear (any angle), radial (circle), and conic (sweep from a center point). Switch between them with one click and the CSS updates live.
Can I add more color stops?
Yes — click anywhere on the gradient bar to add a new stop, drag to reposition, and click a stop to change its color. The generated CSS reflects every change instantly.
Is the output production-ready?
Yes — the CSS is clean and standard-compliant. For older browsers that do not support CSS gradients, declare a plain-color background before the gradient rule as a fallback.
Can I put text over my gradient?
Only if the text zone stays contrast-safe: keep body copy off gradients entirely, and for headlines over an image-plus-gradient scrim, check the lightest point of the text area against your text color in the contrast checker — gradients fail WCAG at their lightest stop first.

CSS gradient generator runs entirely in your browser — nothing you enter is sent to a server.