Skip to content

Extract Colours From Image

Upload any image and extract its dominant colour palette using k-means clustering. No data leaves your browser.

Use fewer colours for simple images, more for complex ones

Drop an image here or click to upload

Supports PNG, JPG, GIF, WebP, SVG

How Image Colour Extraction Works

This tool uses k-means clustering to identify the most dominant colours in your image. The algorithm groups similar pixel colours together and finds the centre of each group, giving you a representative palette.

All processing happens in your browser using the Canvas API. Your images are never uploaded to a server. Choose between 4 and 8 colours to extract, depending on the complexity of your image.