How do I get the RGB values from the color dialog box once I've opened it ?

I need to use those values not just the 16 million number value. Thanks