Color Converter (HEX, RGB, HSL)Specialized Version
🎨

CSS Gradient Generator

Generate CSS gradients

RGB
H (0-360)S (%)L (%)

Copy CSS Values

Lightness Variations

CSS Gradient Generator

Create beautiful CSS gradients visually. Build linear, radial, and conic gradients with custom colors, positions, and angles.

Gradient Types

TypeCSSUse Case
Linearlinear-gradient()Backgrounds, buttons
Radialradial-gradient()Spotlights, orbs
Conicconic-gradient()Pie charts, dials

Linear Gradient Syntax

``css /* Direction + colors */ .gradient { background: linear-gradient(to right, #3B82F6, #8B5CF6); }

/* Angle */ .angled { background: linear-gradient(135deg, #FF6B6B, #4ECDC4); }

/* Multiple stops */ .rainbow { background: linear-gradient( 90deg, red, orange, yellow, green, blue, violet ); } ``

Gradient Directions

DirectionCSSAngle
Left to rightto right90deg
Top to bottomto bottom180deg
Diagonalto bottom right135deg

Popular Gradient Combos

NameColors
Sunset#FF512F → #F09819
Ocean#2193B0 → #6DD5ED
Royal#141E30 → #243B55
Candy#D53369 → #CBAD6D

Export Options

  • Copy CSS code
  • Copy as Tailwind class
  • Download as image
  • Save gradient preset
Create stunning gradients for modern web designs.

Frequently Asked Questions

What gradient types are supported?

Linear (straight line), radial (circular), and conic (angular) gradients are all supported in CSS.

How many colors can a gradient have?

CSS gradients can have unlimited color stops, allowing complex multi-color transitions.

Do gradients work in all browsers?

Modern CSS gradients are supported in all current browsers. Legacy browsers may need vendor prefixes.

Related Tools

Explore other tools you might find useful:

Related Calculators