Skip to content
ColorsGuide

Colour palette from an image

Turn a photo, artwork or screenshot into a palette. The dominant colours are found automatically, and you can drag markers or click the image to fine-tune them.

Example paletteUsed until you create or choose your own

How the colours are chosen

Large images are first scaled down to a small working copy (about 320 pixels across) so analysis takes a fraction of a second, even for 50-megapixel photos. The pixels are then grouped with k-means clustering in the OKLab colour space, where distances match how different colours look, rather than in RGB, where they do not.

Groups that are visually almost identical are merged, and the final colours are picked to balance how much of the image each one covers with how distinct it is from the others. That lets a small but striking accent, such as a red door in a grey street, make it into the palette instead of three near-identical greys.

Tips

Was this page useful?