Image → CSS Gradient
Turn an image into a linear CSS gradient using its dominant colors.
How to Use
- Drop image.
- Pick stop count + angle.
- Copy CSS.
Image
▇
Drop image
Gradient preview
—
Notes
Stops
Sampled by luma
Angle
CSS convention
CSS
linear-gradient(…)
Browser
All modern
Swap order
Reverse by changing angle
Privacy
Local
Frequently Asked Questions
How chosen?
Image is downsampled to a line; colors sorted by luma for a smooth gradient.
Common Use Cases
Hero BG
Quick gradient from photo.
Last updated: