Code for discrete color