Skip to content

Free · no upload · no sign-up

Color palette from image — get the HEX codes from any photo, free

Add a picture and see its main colours with HEX and RGB codes. Press any spot to add that exact colour. It runs in your browser, so your picture stays on your device.

  • Picture stays on your device
  • No sign-up
  • 3 to 10 colours
  • HEX, RGB, CSS and PNG

Updated by the

Made with Kenerate

Quick answer

Updated

How do you get a color palette from an image?

To get a color palette from an image, add the picture to the tool on this page. It finds the main colours and shows each one with its HEX and RGB code and how much of the picture it covers. Choose 3 to 10 colours, press the picture to add an exact colour, then copy the codes or download a PNG. It's free with no sign-up, and it runs in your browser, so nothing is uploaded.

Key facts

Cost
Free · no credits
Account
Not needed
Pictures in
JPG, PNG, WebP up to 50 MB
Colours
3 to 10, plus up to 10 you pick
Codes
HEX and RGB
Export
PNG, HEX list, CSS, prompt line
Uploads
None, read in your browser
Shown per colour
Share of the picture

How to

How to get a color palette from an image

Time needed
Steps
4 steps
  1. Step 1

    Add your picture

    Choose a JPG, PNG or WebP, drop it on the box at the top of this page, or paste it.

  2. Step 2

    Set the number of colours

    Choose 3 to 10 colours, then Most common or Most vivid.

  3. Step 3

    Add exact colours

    Press any spot in the picture to add the colour at that spot.

  4. Step 4

    Copy or download

    Press a code to copy it, copy the whole list as HEX or CSS, or download a PNG.

Tips

Get a palette you can use

Which settings suit which job.

  • A website or a slide deck → 3 or 4 colours, so one can lead and one can stand out.

  • A brand board or an illustration → 5 or 6 colours, which covers light, dark and an accent.

  • A busy photo → 8 to 10 colours, then keep the ones you like with your eye.

  • The palette looks dull → switch to Most vivid, or press the bright spot in the picture.

  • A colour looks a bit off → press near that spot again, because nearby pixels can differ slightly in a JPG.

  • Too much black → shadows count as colours, so crop the picture first if you only want the subject.

FAQ

Color Palette From Image questions

How do I get a color palette from an image?

Add the picture to the tool at the top of this page. The main colours appear straight away with their HEX and RGB codes, and you can copy them or download a PNG.

Link to this answer

Is this color palette generator free?

Yes. It uses no credits and needs no account, because your own browser does the work.

Link to this answer

Is my picture uploaded?

No. The tool reads the picture in your browser, so it never reaches our servers. You can check this in the Network tab of your browser's developer tools.

Link to this answer

How many colours should a palette have?

Three to five suits most designs: one main colour, one supporting colour and one accent, with one or two extras if you need them. Use 8 to 10 when you want to see everything in a busy photo, then cut it down.

Link to this answer

How do I match a colour from a picture?

Press the spot in the picture that has the colour you want. The tool adds that exact pixel's colour to your palette with its HEX and RGB code, ready to copy.

Link to this answer

Are the colours really in my picture?

Yes. Each swatch is a real pixel colour from your picture, the one closest to the middle of its colour group. It isn't a blend of several pixels.

Link to this answer

What does the percentage mean?

It's about how much of the picture is closest to that colour. The tool measures it on a smaller copy of your picture, so treat it as a guide.

Link to this answer

What's the difference between Most common and Most vivid?

Most common goes by area. Most vivid gives bright colours more pull, so a small accent is more likely to get its own swatch. On muted photos the two look much the same.

Link to this answer

Why did I get fewer colours than I asked for?

The tool merges colours that look almost the same, so a logo or flat graphic can stop at two or three. Transparent areas are ignored too.

Link to this answer

Can I use these colours in an AI image prompt?

Yes. Press Copy for a prompt and paste the line into your prompt. In our test the pictures kept to the palette, but the colours came out close to the codes, not exact.

Link to this answer

In depth

Color Palette From Image, explained

What works, what to avoid, and how to pick a model.

How many colours should you take from a photo?

Start with three. The 60-30-10 rule from interior design gives you a simple way to use them, and designers apply it to screens too:

  • 60%: the most common colour, for backgrounds and large areas.
  • 30%: the second colour, for panels, headings and supporting shapes.
  • 10%: the most vivid colour, for buttons and small accents.

By Last updated and reviewed

We build and run Kenerate AI. We tested this tool with real and test pictures in Edge on Windows, and the colours, shares and prompt results on this page come from those runs.

Sources: Wikipedia — CIELAB color space · Wikipedia — k-means clustering · MDN — getImageData, the browser feature that reads the pixels · Homes & Gardens — The 60-30-10 rule · Wix — The 60-30-10 color rule · Dribbble — Choosing colors for web design

Find the colours in your picture

Free, with no sign-up and no upload.

Tried it? Tell us how it went