Palette from Image

Drop in an image, choose how many colours you want, and export the palette. The image never leaves your browser.

or drag & drop — JPEG, PNG, WebP or GIF, up to 5MB

How it works

Median cut puts every sampled pixel in one box in RGB space, then repeatedly splits the box that holds the most pixels and spans the most colour along its widest channel, cutting at a point where the value actually changes. Each final box becomes one palette colour: the average of its pixels.

Every sampled pixel lands in exactly one box, so the shares shown add up to 100% of the image. Small areas, like a sun or a button on a photo, usually need a higher colour count before they get a box of their own: if a colour you expect is missing, raise the slider. Colours are listed from the largest share of the image to the smallest. For just the 5 most common colours, use the Image Color Extractor.

Related tools