πŸ”’ Files are processed in your browser and never uploaded to a server.

Image & Settings
Click to upload or drag & drop an image
Get a color palette from a photo. PNG, JPG, WebP or GIF.
Color Palette
Upload an image. Its color palette shows here.

What is an image color extractor?

An image color extractor reads a picture and gives you its main colors as a palette with HEX and RGB codes. You use it to match a website or a slide deck to a logo or a product photo, to build a brand palette, or to find an accent color that is already in an image.

How to extract colors from a photo

  1. Click the upload area or drop a PNG, JPG, WebP or GIF image on it.
  2. Select the Number of Colors: 4, 6, 8 or 12.
  3. Click a swatch to copy its HEX code.
  4. Click πŸ“‹ Copy all to copy the whole palette.

Main colors, not one pixel

The palette shows colors that stand for large parts of the image, not the color of one exact spot. The tool groups similar pixels with median-cut quantization and sorts the groups by size, so the first swatch covers the most area. To check if a text color works on one of these colors, use the Color Contrast Checker.

Frequently Asked Questions

How do I get a color palette from an image?

Upload the image and select how many colors you want. The swatches show with HEX and RGB values. Click a swatch to copy its HEX code.

How does the tool choose the colors?

It uses median-cut quantization, the same kind of method that builds GIF palettes. It makes the image smaller, groups the pixels by color and splits the widest group until it has the number of colors you asked for.

What can I do with the palette?

Paste the codes into CSS, Figma or a brand guide. Use them to match a site to a logo or a hero photo, or to pick accent colors.

Which image formats can I use?

PNG, JPG, WebP and GIF. Transparent areas are skipped, so the background does not take over the palette.

Is my image uploaded to a server?

No. The image is read with a canvas in your browser. It stays on your device.