To separate the color channels
- R = 0xFC3343 >> 16
- G = (0xFC3343 >> 8 ) & 0xFF
- B = 0xFC3343 & 0xFF
To combine them:
- R G B = (0xFC << 16) + (0×33 << 8 ) + 0×43
This recipe was originally posted at: http://activetofocus.com/blog/rgb-color-channel-seprate-and-combine-8/
