Get a color palette from an image

Drop a photo, design or screenshot to get its main colors, from 3 to 10 of them, with HEX and RGB values and how much of the image each one covers. Copy a single color or the whole palette as CSS.

How to use the color palette from image tool

  1. 1

    Add an image

    Drop a file, click to choose one, or paste a screenshot.

  2. 2

    Pick how many colors

    Choose from 3 to 10. The palette updates instantly, ordered from the most common color.

  3. 3

    Copy the codes

    Copy any HEX value with one click, or copy the whole palette as CSS custom properties.

Color palette from image: Pull the main colors out of any image as HEX and RGB values.

How the colors are picked

The image is scaled down, then its pixels are split into groups of similar colors (median cut), and each group is averaged. The same image always gives the same palette. Transparent pixels are ignored.

Why a color looks slightly different

Each swatch is the average of a group of similar pixels, so it may not match any single pixel exactly. For an exact pixel, use a color picker on the original.

Frequently asked questions

Are my files uploaded anywhere?+

No. This tool runs entirely in your browser, so the file never leaves your device. Closing the tab discards it.

Can I get a palette from a logo?+

Yes. Logos usually have only a few colors, so choose 3 to 5 for the cleanest result. Transparent backgrounds are ignored.

What does the percentage mean?+

Roughly how much of the image each color group covers, so you can tell the dominant color from the accents.

Is it free? Do I need an account?+

Yes, it’s free and there’s no signup, watermark or daily limit. An account is only needed if you want teammates or clients to comment on the file in edits.io.

Need feedback, not just a file?

Click anywhere on mockups, screenshots and artwork to leave precise comments. Clients comment with a link, no account needed.

See design feedback in edits.io