CSS Gradient Generator
Design linear and radial gradients visually — with the exact CSS one click away.
CSS
background: linear-gradient(120deg, #6d5bff 0%, #22d3ee 100%);
About this tool
Gradients are back at the center of web design — hero backgrounds, buttons, text effects, glassmorphism cards — and hand-writing linear-gradient() syntax while imagining the result is guesswork. This generator flips the workflow: design the gradient visually in the live preview, then copy the exact CSS.
Pick your two colors with native color pickers (with the eyedropper on desktop Chrome and Edge, so you can sample from any design on screen), choose linear or radial, and for linear gradients drag the angle from 0 to 360 degrees. The preview updates on every change, and the CSS below it is always in sync — standard syntax with explicit color stops that works in every modern browser with no prefixes needed.
A practical tip built from how gradients actually get used: subtle beats loud. The most professional-looking gradients travel a short distance in hue (violet to blue, not red to green) or vary mainly in lightness. Sample your brand color as the start, shift the hue slightly for the end, and you'll get the polished SaaS look — the same recipe as this site's own signature gradient.
How to use the CSS Gradient Generator
- 1Pick your start and end colors — on desktop, the eyedropper can sample any color on screen.
- 2Choose Linear or Radial; for linear, drag the angle slider.
- 3Watch the live preview update with every change.
- 4Click Copy CSS and paste it into your stylesheet.
Frequently asked questions
What's the difference between linear and radial gradients?
Linear gradients transition along a straight line at your chosen angle — the standard for backgrounds and buttons. Radial gradients radiate outward from the center in a circle — used for spotlight effects, orbs and vignettes.
What do the angle degrees mean?
0° points up (bottom-to-top transition), 90° points right (left-to-right), 180° points down. The convention is the direction the gradient travels toward. 120–135° is the popular 'diagonal' look most modern sites use.
Will this CSS work in all browsers?
Yes — the generated syntax is the modern CSS standard, supported without prefixes in every browser released in the last decade. No -webkit- or -moz- variants needed.
How do I make a gradient look professional rather than loud?
Keep the two colors close: shift the hue slightly (violet → blue) or vary mainly lightness, rather than jumping across the color wheel. Short-distance gradients read as polished; long-distance ones read as 2010.
Related tools
Color Picker & Converter
Pick any color and get its HEX, RGB and HSL values with one-tap copy.
Open toolHEX / RGB / HSL Converter
Paste a color in any format — HEX, rgb() or hsl() — and get all three, instantly.
Open toolBox-Shadow Generator
Design CSS box-shadows with sliders and a live preview — offsets, blur, spread, opacity and inset.
Open toolColor Contrast Checker
Check text/background contrast against WCAG AA and AAA — with a live preview of how it actually reads.
Open tool