I have a button in my form that opens a color palette using the CommonDialog component. I was wondering if there is a way to set the hex decimal of the color that is chosen in the palette to a label.

For example, if someone chooses the color red in the color palette, then

Label1's caption would be #FFOOOO