In Objective-C, we use this code to set RGB color codes for views:
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0x
You can use this:
//The color RGB #85CC4B let newColor = UIColor(red: CGFloat(0x85)/255 ,green: CGFloat(0xCC)/255 ,blue: CGFloat(0x4B)/255 ,alpha: 1.0)