In Objective-C, we use this code to set RGB color codes for views:
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0x
myLabel.backgroundColor = UIColor(red: 50.0/255, green: 150.0/255, blue: 65.0/255, alpha: 1.0)