EllyTools

Image Tools

Calculators

Text Tools

Color Tools

File Tools

Utility Tools

Gradient Generator

Create CSS gradients with visual editor

135Β°

sRGB is how gradients have always mixed; between distant colours such as blue and yellow it passes through a dull grey. OKLab keeps the middle bright, OKLCH goes round the colour wheel.

%
%
background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
bg-[linear-gradient(135deg,#6366f1_0%,#ec4899_100%)]

β—ˆ How to Use

1

Choose linear, radial, or conic gradient type

2

Add or reorder colour stops, set the angle or centre, and choose how colours mix (sRGB, OKLab, OKLCH)

3

Copy the generated CSS β€” paste directly into your stylesheet

❓ Frequently Asked Questions

Related Tools

β—‰ Who Is This For?

  • βœ“Frontend developers building hero sections, buttons, or backgrounds
  • βœ“Designers prototyping color flow before exporting to Figma
  • βœ“Anyone learning how CSS gradients work by tweaking and seeing live results

Gradient Generator: Smooth Color Transitions for Backgrounds

Gradients turn flat colors into rich backgrounds β€” modern web design uses them everywhere. This generator builds linear, radial, and conic gradients with multiple color stops, outputting CSS code ready to paste.

CSS gradients are technically image fills, not real images. They render natively in browsers, scale to any size, and don't add network requests. They're cheap, beautiful, and infinitely tweakable.

Gradient types

  • β€’Linear β€” color flows in a single direction (top-to-bottom, diagonal, etc.)
  • β€’Radial β€” color radiates from a center point outward
  • β€’Conic β€” color sweeps around a center like a clock hand (newer, less ubiquitous)
  • β€’Multiple stops β€” three or more colors at chosen positions for more complex transitions

Extended FAQ

Why does my gradient have visible bands?

Color banding from too few intermediate values. Add more stops, or convert from sRGB to OKLCH gradients which interpolate more smoothly across colors.

Are my gradients stored?

No. The gradient is only a CSS rule this page writes for you. Copy it and the page has no further record of it.