About this tool
Drop in an image and extract its dominant colors as hex swatches, processed locally with a canvas — nothing is uploaded.
The image is read with FileReader and drawn onto a hidden 80 by 80 canvas, so it is stretched to a square and at most 6,400 pixels are analyzed. Pixels less than half opaque are skipped. Each other pixel goes into one of 512 buckets (the top three bits of red, green and blue), a bucket's real pixel values are averaged, and the six biggest buckets, most frequent first, become the swatches.
Because buckets are fixed ranges, not clusters, a smooth gradient can fill several swatches while a small accent color misses the top six. Click a swatch to copy its hex. Only the first file you drop or choose is used, and if the browser cannot decode it a "could not read" message appears.