If you like to put down a bunch of group SOPs manually which is quite error prone. Works for one or two groups based on an attribute. Not for what you want.
A better method is to use the Partition SOP. It even has an option “Group by Color” in the Rule parameter's right hand arrow menu button. Choose that option and you will have a group for each unique color.