G
GamutDesk

Image Dominant Palette Extractor

Extract 6 dominant theme colors from any image using Web Worker K-Means clustering off the main thread. 100% private and client-side.

100% Client-SideZero Data Collection
PNG, JPEG, WebP
Web Worker Off-Thread

Upload an image above to extract its 6-color dominant theme

6 Extracted Dominant Palette Swatches (Click to Copy)

Technical Specification & Mathematical Principles

The algorithm minimizes within-cluster sum of squares (WCSS): arg min Σ Σ ||x - μ_i||² where x represents sampled pixel vectors [R, G, B] and μ_i are centroid vectors.

Pixels with alpha transparency below 50% are automatically pruned from the dataset to avoid bias from transparent PNG borders.

Frequently Asked Questions

K-Means groups tens of thousands of image pixels into 6 distinct spatial clusters in Euclidean color space, iteratively computing their average centroids until variance stabilizes to identify genuine visual anchors.

Related Design & Color Instruments