For what it's worth, attached is my Color Classifier that is based on Discrminant Analysis instead of kmeans. Basically you draw regions that are representative of the colors you want to have as your classes. Then it classifies all the pixels in the image into one of those classes.
Also attaching a KNN classifier demo.
Adapt as needed.