palette2colors function

Extract hexadecimal colors from a color palette