Extract Color Palette from Image

Drop any image; this tool extracts the N most dominant colors using k-means clustering in OKLab color space (perceptually uniform). Get hex / RGB values ready to use as a CSS palette. Browser-only — image stays local.

How to use the Extract Color Palette from Image

Upload an image. Pick how many colors you want. The tool downscales the image, samples pixels, runs k-means clustering on the colors, and returns the cluster centroids as the dominant palette. Click any swatch to copy its hex value.