They're supposed to provide a color label so you can easily
identify the object in Interface Builder. If you select a file or
folder from the Finder and choose File > Get Info, you can set a
color label and see what setting a color label is supposed to do.
Like you, I have also found that clicking a color does nothing in