Image colour palette
Pull the dominant colours out of any photo or design with k-means, and copy them as HEX, RGB, HSL, CSS variables, Tailwind or JSON.
Runs in your browserNothing uploadedWorks offline
Loading Image colour paletteRuns on this device. Nothing is uploaded.
Questions
How are the colours chosen?
Pixels are sampled and grouped with k-means clustering, so each colour is the average of a group of similar pixels. They are sorted by how much of the image they cover, shown as a percentage.
Why does the palette not include a tiny accent colour?
Small areas lose out to large ones. Ask for more colours to let small but distinct groups appear.
Are transparent areas counted?
No. Pixels that are more than half transparent are ignored.
Related tools
All images toolsImagesimage jpg jpegAdd text or watermark to imagesPut a caption, credit or tiled watermark on many photos at once, with position presets, drag to place, size, colour and opacity.Imagesimage png jpgApp icon generatorMake an iOS AppIcon set with Contents.json, a macOS .icns and iconset, and Android launcher icons from one 1024 pixel image.ImagesAspect ratio calculatorFind the aspect ratio of any size, or work out the missing width or height for 16:9, 4:5, 1:1 and other ratios, with even numbers for video.Imagesimage jpg jpegAVIF to JPGTurn AVIF images into JPG files that older apps and upload forms accept, in bulk, with a quality slider.Imagesimage jpg jpegAVIF to PNGConvert AVIF images to PNG in bulk, keeping transparency, so any editor or app can open them.Imagesimage jpg jpegBlur or pixelate part of an imageHide faces, names, number plates or screen details by blurring or pixelating the areas you drag over, so the original pixels are not in the saved file.