In doing color challenges, I have had to write hex codes next to the colors. Not hard, but a little long. My suggestion is to have a text tool. Clicking on it would also show buttons to import, export, or create a font. These could also have colors defined on a per use or per image basis.