Advertisement

Color Stops

CSS Code

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

Preset Gradients

Click any preset to apply it instantly.

Advertisement

How to Use CSS Gradients

📐 Linear Gradients

The most common type. Colors transition along a straight line. Use the angle slider to rotate the direction.

⭕ Radial Gradients

Colors transition outward from a center point. Great for backgrounds, buttons, and spotlight effects.

🎠 Conic Gradients

Colors transition around a center point (like a color wheel). Perfect for pie charts, color wheels, and creative effects.

💡 Pro Tips

🎯 More Tools

Try our Palette Generator to build full color schemes, or the Contrast Checker to ensure accessibility.

Frequently asked questions

What is the difference between linear, radial, and conic gradients?

Linear blends colors along a straight line at a set angle, radial blends outward from a center point, and conic sweeps colors around a center like a clock face. CSS exposes them as linear-gradient(), radial-gradient(), and conic-gradient(), all supported in current browsers.

How many color stops should a gradient have?

Two stops are the minimum and stay predictable across browsers; three or four let you control the midpoint. Past about six stops a gradient starts to band on 8-bit displays, so add noise or interpolate in a wider color space instead of adding more stops.

Why does my gradient look banded?

Banding comes from 8-bit color steps: a slow transition between similar colors shows visible stripes. Shorten the transition distance, add a subtle noise overlay, or interpolate in a wider color space such as oklab with CSS color interpolation.