Colour palette from image

Pull the main colours out of any photo, logo or design. Get HEX and RGB codes, the share of each colour, CSS variables to paste into your site and a palette image to download. Free, and your image never leaves your device.

Runs in your browser. Nothing is uploaded.

How it works

The tool samples thousands of pixels from your image and groups similar colours together (a method called k-means clustering). Each swatch is the average of one group, sorted from the most common to the least, with the share of the image it covers.

Ideas for using your palette

  • Match a website, presentation or social post to a brand logo.
  • Build a colour scheme from a favourite photo or room.
  • Pick text and background colours that suit your product photos.

Need one exact colour from a specific spot? Use the colour picker.

Questions

What's the difference between HEX and RGB?

They're two ways of writing the same colour. HEX (like #FF6B35) is common in web design; RGB (like rgb(255, 107, 53)) gives the red, green and blue amounts from 0 to 255.

Why don't I see a small accent colour?

Very small areas can merge into a bigger nearby colour. Choose more colours to pick out smaller details.

Is my image uploaded?

No. The colours are worked out in your browser.

More free tools