Simple convenience method to get hex value of a color

Including doc string and test