Interfaces and CSSRuns in your browser

Image Color Palette Extractor

Extract up to eight colors from a downsampled image without sending the file to a server.

  • 4–8 colors
  • HEX and RGB
  • Local processing
Online tool

Try the tool

Add your data, choose the settings, and get the result.

Image and sample

Processing is local. The palette uses a downsampled image up to 160 px on its longest side; it is not an exact inventory of every color.

Sampled palette

Choose a file and run extraction.

Processing in your browser

Text and selected files are processed in the current browser and are not sent to a server to produce the result.

Reviewed: 2026-07-17
01

How to use it

  1. 1

    Choose a JPEG, PNG, WebP, or AVIF file.

  2. 2

    Select four to eight palette colors.

  3. 3

    Extract the palette and copy the HEX values you need.

02

What the tool can do

  • Deterministic five-bit RGB quantization of a downsampled image.
  • HEX, RGB, count, and percentage of sampled pixels.
  • Transparent pixels are skipped; partial transparency is composited onto white.
03

Common use cases

  • Quickly getting HEX values from a reference image.
  • Preparing a draft UI palette.
  • Manually comparing dominant colors across images.
04

How it works inside

The sample's longest side is limited to 160 pixels.

Equal-frequency colors are sorted by HEX for stable output.

05

Questions and answers

How can I extract a photo's main colours?

Choose an image and select four to eight colours. The tool analyses a downsampled copy in the browser and shows selected colours with HEX and RGB codes. Copy the code you need for your design.

Why is a small coloured detail missing from the palette?

The palette contains a limited set of colours from a smaller sample. Small details and similar shades may not appear separately. Use an image editor's colour picker when you need an exact colour from a particular detail.