Home / Color palette generator from an image

Color palette generator from an image

Turn any photo into a ready-to-use color palette. Choose how many colors you want, then copy the codes or download the palette as an image.

Private: your image never leaves your device

No image handy?

Advertisement

How to make a color palette from a photo

  1. Add a photo. Drop it on the page, choose a file, or paste a copied image with Ctrl+V. Landscapes, product shots, artwork and screenshots all work.
  2. Set the number of colors. Use the Colors slider. Fewer colors give a simple, bold palette; more colors pick up small accents.
  3. Read the coverage. Each color shows how much of the image it fills, so you can see which is the main color and which are accents.
  4. Export it. Copy a single code, copy the whole palette as a list or as CSS variables, or download it as a PNG for a mood board.

How many colors should a palette have?

For a brand, website or app, three to five colors is usually enough: one or two neutrals for backgrounds and text, one main color, and one or two accents. Illustrations, mood boards and interior schemes can use six to eight.

A useful starting point is the 60-30-10 rule: about 60% of a design uses the dominant color, 30% a secondary color, and 10% an accent. The coverage percentages in the palette above map neatly onto this. The color with the biggest share is a natural base, and a small but bright color makes a good accent.

Tips for a better palette

  • Crop first. A big sky or plain background will take over the palette. Crop to the part of the photo you care about before uploading.
  • Go high, then trim. Set the slider to 10–12 to catch small accent colors, then keep only the ones you like.
  • Grab exact spots. The palette averages similar shades. To capture one exact color, such as a sign or a flower petal, click it on the image.
  • Check text contrast. If you'll put text on a palette color, make sure it's readable. Dark text on light colors and white text on dark colors is the safe choice.
Advertisement

Frequently asked questions

How do I get a color palette from a picture?

Upload or paste the picture on this page. The main colors appear automatically with their hex codes. Use the Colors slider to choose how many, then copy them or download the palette.

Can I use the colors commercially?

Yes. Individual colors and hex codes can't be copyrighted, so you can use them in any project. Avoid copying a well-known brand's exact color scheme for a competing product, where trademark law can apply.

How is the palette calculated?

The image is sampled and similar shades are grouped using perceptual color distance, which matches how alike two colors look to the eye. Each group becomes one palette color, shown with the share of the image it covers.

Is my photo uploaded anywhere?

No. The palette is calculated in your browser and the photo never leaves your device.

What formats can I export?

Copy any color as HEX, RGB or HSL, copy the full palette as a list or as CSS custom properties, or download it as a PNG image.

More free color tools

Advertisement