Design Utilities

Color Palette from Image

Upload an image to extract its main colours as HEX and RGB values, processed on your device.

Private by design — your data stays on your device.

Image

JPG, PNG, WebP, GIF, SVG · stays on your device

Your image is analysed in this browser tab and is never uploaded.

Palette

Choose an image to extract its colours.

What does the colour palette extractor do?

Choose an image and this tool pulls out its main colours as a balanced palette, keeping small but distinctive accents rather than only the most common shades. Copy the HEX or RGB values, or download the palette as JSON or CSS variables.

How to use the colour palette extractor

  1. Choose or drag in an image (JPG, PNG, WebP, GIF or another format your browser can display).
  2. Pick how many colours you want in the palette.
  3. Copy any HEX value with its button.
  4. Download the palette as JSON or as CSS variables.

Your privacy

Your image is opened directly by your browser and analysed on a canvas on your device. It is never uploaded — MyToolsLab has no server that could receive it.

Read how MyToolsLab handles privacy

Frequently asked questions

How do I get a colour palette from an image?

Choose the image, then set the number of colours. The palette appears straight away with a HEX and RGB value for each colour, sorted by how much of the image it covers.

How are the colours chosen?

The tool groups similar pixels together and refines the groups with a k-means algorithm. Starting colours are chosen to be far apart, so a small but vivid accent can still make it into the palette.

Does it work with transparent images?

Yes. Fully or mostly transparent pixels are ignored, so the background of a transparent PNG logo doesn’t dominate the palette.

Is my image uploaded?

No. The file is read by your browser and analysed locally. You can disconnect from the internet after the page loads and the tool still works.