Colour Cluster Puzzle

Group colourful samples, position cluster centres, compare distances, follow animated k-means iterations, and discover how initial choices influence the colour clusters across challenging palettes.

Score0Colour Apprentice
Iteration0Ready
InertiaLower is tighter
SilhouetteHigher is clearer

Puzzle Setup

K = 4
48 colours

Display and Accessibility

Interactive Colour Map

Choose settings, generate a palette, then select or initialise centres.
Click a colour to inspect distances. In player-selected mode, click samples to choose centres. Drag centre stars to test alternatives.

Cluster Centres

K-means alternates between assigning samples and updating each centroid.

Selected Colour Calculation

Select a colour sample to inspect its values and distances.

Plotly Analytics

Run Comparison and Results

RunKIterationsInertiaSilhouetteScoreInitialisationSpace
Current400K-means++RGB

How the Puzzle Works

1. Choose K

Select how many colour groups the model should find.

2. Assign Samples

Each colour joins its nearest centre under the chosen distance.

3. Update Centres

Each centroid becomes the mean of its assigned colour samples.

assignment(x) = arg min distance(x, μk)   |   μk = mean(samples assigned to cluster k)   |   inertia = Σ ||x - μassignment(x)||²

Learning Notes

Important ideas

K-means seeks compact groups around centroids. Initial centres can change the final solution. Different colour spaces can change perceived similarity.

Common edge cases

Empty clusters need replacement centres. Outliers can pull means away from dense groups. Too many clusters may split natural colour families.

Related Calculators

Customer Segment ExplorerAnimal Grouping ChallengeMusic Taste ClusteringCity Clustering GameNews Article GrouperShopping Basket ClustersPlanet Classification ExplorerPlayer Style ClusteringFind the Best Number of Clusters

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.