PDFPixo

Image colour palette

Find the main colours of a picture with their HEX and RGB codes.

Choose a picture to see its main colours with HEX and RGB codes, and download them as a colour card.

What this tool does

This tool looks at a picture and finds its main colours. You get a clean picture card that shows each colour as a block with its HEX code, its RGB values and how much of the picture it covers. The same codes are also listed under the result so you can copy them. It is useful for matching the colours of a logo when ordering a banner, picking shop or website colours from a product photo, keeping brand colours consistent across posters and social media posts, or simply finding out the exact shade of a colour you like.

HEX and RGB codes explained

A HEX code such as #1F4E79 is the short colour code used by websites, design apps, Canva, PowerPoint and most printers. RGB values such as 31, 78, 121 describe the same colour as amounts of red, green and blue light. Both describe exactly the same shade, so you can use whichever your app asks for. Printers that work in CMYK can convert these codes, but printed colours can look slightly different from the screen.

How the colours are found

The picture is scaled down and similar shades are grouped together, so tiny differences caused by lighting or compression do not create dozens of nearly identical colours. Each group is averaged to give one clean colour, and the groups are sorted by how much of the picture they cover. Transparent areas, such as the background of a PNG logo, are ignored, so they do not count as white or black.

Choosing the number of colours

You can ask for between 2 and 16 colours. A simple logo usually has two to four main colours, while a photo of a landscape or a crowded shop shelf may need eight or more to describe it well. The percentages always add up to the visible part of the picture, so you can see which colour dominates.

Approximate by nature

The colours are the dominant shades of the picture, not a perfect copy of every pixel. A photo taken under yellow light will give warmer colours than the real object. For exact brand colours, use the original logo file from the designer rather than a photo of a printed sign.

Using the codes in other apps

In Canva or PowerPoint, choose a shape or text, open the colour picker, and paste the HEX code into the custom colour box. In Word, use More Colours and enter the RGB values. Web designers can paste the HEX code straight into a website builder. When you order a printed banner or visiting card, send the colour card picture along with your design so the printer knows which shades you expect.

Private by design

Your picture is analysed inside your browser and never uploaded. Nothing is stored after you close the page.

How to use it

  1. Choose a picture Select a logo, product photo, screenshot or any image.
  2. Set the number of colours Pick between 2 and 16 colours.
  3. Find the colours Press the button to see each colour with its HEX and RGB code.
  4. Copy or download Copy the codes shown under the result, or download the colour card as a PNG.

Why choose PDFPixo for this tool

  • Codes you can use HEX and RGB codes work in Canva, Word, PowerPoint, websites and print shops.
  • Clean, grouped colours Similar shades are merged so you get useful colours, not hundreds of near copies.
  • Shareable colour card Download a picture of the palette to send to a designer or printer.
  • Private and free Your picture never leaves your device.

Frequently asked questions

What is a HEX colour code?
A short code like #FF0000 that design apps and websites use to name a colour exactly.
Why are the colours slightly different from my logo?
Photos change colours with light and compression. Use the original logo file for exact colours.
Are transparent areas counted?
No. Fully transparent parts are ignored.
How many colours should I choose?
Two to four for a logo, eight or more for a busy photo.
Is my picture uploaded?
No. Everything happens in your browser.

Related tools

  • Convert photos — Change JPG, PNG, WebP, AVIF and iPhone HEIC photos in bulk.
  • SVG to PNG — Turn SVG logos and icons into PNG, JPG or WebP at any size.
  • Edit & compress photo — Resize, crop, rotate, improve and export an image.
  • Photo overlay — Place a logo or a second photo over a picture, with size and opacity controls.