Gradient from Image

Upload a photo and turn it into a gradient made from its colors. Copy the CSS code or fine-tune it in the gradient generator.

Palette
Send to Contrast · Harmonies
5 colors
Image to pick colors from
Drag each point to sample a different color from the photo.

How to make a gradient from a photo

  1. Upload the photoA sunset, a landscape or any photo with colors you like.
  2. Choose the colorsTry the Vivid, Soft or Light modes, or drag the points. The gradient goes from dark to light.
  3. Copy the CSSCopy the linear-gradient or open it in the generator to change the angle or make it radial.

Tips for a good gradient

Frequently asked questions

How do I use the CSS?

Paste the background: linear-gradient(...) line into your element's style. It works in all current browsers.

Can I change the direction?

Yes. Open the gradient in the generator and choose the angle, a radial gradient or mesh mode.

How many colors does it use?

Up to 6, sorted by lightness so the blend between colors looks natural.

More ways to get colors from an image

Try this next

Name color paletteType a name and get your own color story paletteRandom color wheelSpin the wheel and let chance pick a colorColor aquariumA relaxing 3D aquarium in your palettes
See all free tools →
Export palette