Color Palette from Image
Pull the dominant colors as hex.
Drop an image and the tool pulls its dominant colors into a palette of hex codes you can copy one by one or all at once. It shrinks the picture to about 100 pixels, then runs a median-cut pass that groups similar pixels and averages each group into one representative color. Pick 5, 6 or 8 swatches. Nothing is uploaded, so it works offline.
How it works
The image is drawn onto a small offscreen canvas, roughly 100 pixels on its longest edge, which is enough to judge the color mix without reading millions of pixels. Median cut then sorts those pixels into buckets by color and splits the widest bucket again and again until it has the number of colors you asked for. Each bucket is averaged into one swatch. It all runs in the browser, with no upload.
Choosing a palette size
| Colors | Best when |
|---|---|
| 5 | A tight brand set or a slide theme with room to breathe |
| 6 | A balanced default that suits most photos and screenshots |
| 8 | A fuller scheme for illustrations and busy images with many tones |