CSS Gradient Generator — Copy Linear, Radial & Conic Code Free

Build stunning linear, radial, and conic CSS gradients visually with unlimited color stops, precise angle control, and instant export to CSS, Tailwind CSS, and SCSS. No account. No watermarks. Completely free.

Quick Answer

How do I write a CSS gradient with multiple colors?

Use linear-gradient() with multiple color stops: background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 50%, #6bcb77 100%). Each stop is a color followed by a percentage position. Add as many stops as you need. This generator builds the syntax visually and copies it for you.

Used by frontend developers, UI designers, and no-code builders to create pixel-perfect background gradients without writing a single line of CSS by hand.

Build unlimited CSS gradients free — live preview, instant code export.
🔒 No Signup⚡ Live Preview🆓 Free Forever🎨 Unlimited Stops

Color Stops

Pos0%
Alpha

Direction

135°

Export Code

background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
2 color stops · linear

Works in all modern browsers · No watermark · No account · Free forever


The gray dead zone in two-color gradients

If you build a gradient between two saturated complementary colors — say, blue (#3B82F6) to orange (#F97316) — the midpoint interpolates through gray in sRGB color space. The gradient looks muddy or washed out in the middle. This is not a rendering bug; it's how sRGB linear interpolation works between colors that are opposite on the hue wheel.

The fix: add a mid-point color stop at 50% using a saturated color that sits between the two hues on the wheel. For blue-to-orange, that's roughly purple (#7C3AED) or magenta. Alternatively, use oklch color interpolation (supported in Chrome 111+ and Safari 16.2): background: linear-gradient(in oklch, #3B82F6, #F97316) — the OKLCH color space interpolates through perceptually uniform hues, avoiding the gray dead zone entirely.

When to use linear, radial, and conic

  • linear-gradientColor transitions along a straight line at any angle. Use for hero backgrounds, button hover states, and directional highlights. The angle to bottom right is equivalent to 135deg — both are valid.
  • radial-gradientColor radiates outward from a center point. Use for spotlight effects, circular element backgrounds, and vignette overlays on images. Control shape with circle or ellipse.
  • conic-gradientColor sweeps around a center point like a clock face. Use for pie charts, color wheels, and angular segment indicators. Often combined with border-radius: 50% to render a circle. Browser support is universal as of 2023.

CSS gradients vs. image backgrounds for performance

CSS gradients are rendered by the GPU on every paint. A simple two-stop linear gradient has essentially zero performance cost. A complex multi-stop radial gradient on a large element that repaints frequently (e.g., inside a scroll animation) can cause paint bottlenecks on low-end hardware. For static decorative backgrounds, CSS gradients are always faster than image files — no network request, no decode step, scalable at any resolution.

10 popular CSS gradient examples — copy and paste

NameCSSPreview
Sunsetlinear-gradient(135deg, #f093fb 0%, #f5576c 100%)#f093fb, #f5576c
Oceanlinear-gradient(135deg, #667eea 0%, #764ba2 100%)#667eea, #764ba2
Forestlinear-gradient(135deg, #11998e 0%, #38ef7d 100%)#11998e, #38ef7d
Firelinear-gradient(135deg, #f7971e 0%, #ffd200 100%)#f7971e, #ffd200
Midnightlinear-gradient(135deg, #2c3e50 0%, #4ca1af 100%)#2c3e50, #4ca1af
Rose Goldlinear-gradient(135deg, #f6d365 0%, #fda085 100%)#f6d365, #fda085
Radial centerradial-gradient(circle, #6a11cb 0%, #2575fc 100%)#6a11cb, #2575fc
Mesh (conic)conic-gradient(from 0deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #ff6b6b)multi
Diagonal striperepeating-linear-gradient(45deg, #f8f9fa, #f8f9fa 10px, #dee2e6 10px, #dee2e6 20px)stripes
Diagonal fadelinear-gradient(to bottom right, rgba(255,255,255,0) 40%, rgba(99,102,241,0.3) 100%)rgba fade

Video demo

☕ Support Us