The average colour of an image is the single mean colour of all its pixels — a great choice for a solid placeholder background, a theme accent pulled from a hero photo, or a quick “is this image light or dark?” check.
How it is computed
for each visible pixel:
sumR += red, sumG += green, sumB += blue, count++
averageR = sumR / count (and the same for G and B)
Fully transparent pixels are ignored so a PNG with a large clear area is not biased toward black. The image is downscaled before sampling because the mean is unaffected by resolution — this keeps even large photos instant.
Reading the result
Alongside HEX, RGB and HSL, the tool reports the WCAG relative luminance of the average colour:
- > 0.5 — the image is overall light; dark text will read well on it.
- < 0.5 — the image is overall dark; use light text.
Everything runs locally in your browser, so the image is never uploaded.