Skip to main content
HandyWeb

Image Palette Extractor

Find the main colors of a picture with the share of each one, and copy them as CSS variables, a HEX list, or JSON.

Runs on your device.

How to Use It

  1. Choose a picture.
  2. Choose the number of colors.
  3. Copy a color or the whole palette.

Questions and Answers

How are the colors found?

With median cut: the pixels are split by color again and again, and the average of each group is one palette color. The result is always the same for a picture.

Good to Know

Colors are read from a 128-pixel copy of the picture, so very small details are not seen. Transparent areas are ignored.

Source code of this toolReport a problem on GitHub