Skip to content

Colour Palette Extractor

Extract a colour palette from an image. Get the main colours as HEX codes and export them for Aseprite, GIMP, Lospec or CSS. Free, in your browser.

NewFree, no sign-upNothing you add is uploaded
Loading the tool

How to use the Colour Palette Extractor

  1. Open an image: concept art, a screenshot, a photo.
  2. Choose how many colours you want. The palette updates straight away.
  3. Click a colour to copy its HEX code, or export the whole palette.

What you get

GIMP and Aseprite
A .gpl palette file.
Lospec
A .hex file, one colour per line.
CSS
Custom properties ready to paste.
PNG
A strip of swatches.

Questions

How are the colours chosen?

The tool groups similar pixels together (k-means clustering) and shows the average colour of each group, ordered by how much of the image it covers.

Are transparent pixels counted?

No. Transparent and nearly transparent pixels are ignored, so sprites on a transparent background work well.

Are my files uploaded?

No. Everything happens in your browser, on your own device. Your files never reach our server, and nothing is kept after you close the page.

Hover over one for a quick look.

More in Colour
  • Colour Code Converter

    Convert HEX, RGB and HSL, with Unity and Godot colour values.

  • Sprite Sheet MakerAI

    Turn a GIF or video into a game-ready sprite sheet.

  • 3D Model to Sprite SheetNew

    Record a 3D model’s animation as a sprite sheet, from up to 8 directions.

  • Image Compressor

    Make JPG, PNG and WebP files smaller and see how much you save.