From http://blog.softteco.com/2011/06/extract-hex-rgb-color-from-uicolor.html