UIColor-Hex-For-Swift When you want to get the color value for '#00aa00', you just need to use it. UIColor.getColor("00aa00")