GlobalFree to use

Image colour palette

Extract dominant RGB colours and their hexadecimal values.

This tool uploads files or inputs to our isolated processor. Working files are deleted after the job. Do not submit sensitive or confidential material.

Input

Tip: press Ctrl + Enter to run

Your result

Your result will appear here.

About this tool

Designers, marketers and decorators often want the main colours of a photo, logo or artwork: to build a matching palette for a website, choose paint, or create social media graphics that fit a brand. This tool reduces the image to the number of colours you choose and lists them as hexadecimal codes, ordered by how much of the image each covers.

The hex codes can be pasted directly into CSS, design apps and presentation software.

How to use it

  1. Choose an image.
  2. Choose how many colours to extract (2 to 16; 5 or 6 is typical).
  3. Run it and copy the hex codes.

How the calculation works

The image is reduced to at most 300 × 300 pixels for speed and colour-quantized with Pillow’s median-cut algorithm to the requested number of colours. Each colour’s share is the number of pixels assigned to it divided by the total.

Worked example

A café owner photographs the shop’s tiled counter and extracts 5 colours. The result lists a deep teal covering about a third of the picture, a cream, a warm wood brown, a dark charcoal and a brass yellow, with hex codes she gives to her web designer.

Limitations

  • Up to 16 colours.
  • Dominance is based on pixel area, not visual importance.
  • Processed on the server; the image is deleted afterwards.

Last updated:

Frequently asked questions

Why are the colours slightly different from what I see?

Quantization averages similar shades; try more colours for finer detail.

Can I get RGB values?

Hex codes encode RGB: #1a7f86 is R 26, G 127, B 134.

Does it include transparent areas?

Transparent pixels are treated as white.

Troubleshooting

Background colour dominates.

Crop to the subject first.

Two very similar colours appear.

Reduce the colour count.

The palette seems dull.

Shadows and highlights average out; boost contrast first.

Privacy & Free to use

Are my inputs stored?

This tool uploads files or inputs to our isolated processor. Working files are deleted after the job. Do not submit sensitive or confidential material.

Is this tool free?

Yes. No signup or payment is required.

Server processing

Useful next steps