// Original answer. var newColor = UIColor.lightGrayColor().CGColor // Swift 3 version var newColor = UIColor.lightGray.cgColor