Extract colors from an image and generate a CSS gradient.
This tool analyzes your uploaded image to extract its dominant colors, then generates a CSS gradient that captures the image's color essence. It's perfect for creating background gradients that complement your photography or match a brand's visual identity.
| Direction | CSS Value | Best For |
|---|---|---|
| Left to Right → | to right |
Headers, progress bars |
| Right to Left ← | to left |
RTL layouts, variation |
| Top to Bottom ↓ | to bottom |
Hero sections, full-page backgrounds |
| Bottom to Top ↑ | to top |
Footer fades, overlays |
| Diagonal ↘ | to bottom right |
Dynamic, modern designs |
| Diagonal ↗ | to top right |
Energy, upward movement |
linear-gradient(to right, #667eea, #764ba2)
radial-gradient(circle, #667eea, #764ba2)
background: linear-gradient(
to right,
#ff6b6b 0%,
#feca57 25%,
#48dbfb 50%,
#ff9ff3 75%,
#54a0ff 100%
);
/* Overlay on image */
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 0.8) 100%
), url('image.jpg');
/* Striped pattern */
background: repeating-linear-gradient(
45deg,
#606dbc,
#606dbc 10px,
#465298 10px,
#465298 20px
);
CSS gradients have excellent browser support:
background: #667eea; /* Fallback */
background: linear-gradient(to right, #667eea, #764ba2);
to right - Horizontal →to bottom - Vertical ↓to bottom right - Diagonal ↘45deg - Angle in degrees0.25turn - Rotation units