Evade color as code, seek color as attribute

Being dog-matic is my nature. To use color appropriately is difficult. My suggestion is to avoid color. There are exceptions. In some cases color is an attribute of the object in question and not a means to code information:

Porsche GT3 color variants

Another successful example I like:

Survey on polls for the German Bundestag