Change the color of your label in code.
If you know your RGB values you can simply set the background color by doing:
label.textColor = UIColor(red: 1.00, green: 1.00, blue: 1.00, alpha: 1.00)You can also convert a HEX color to UIColor by using these tools:
You can also use the standard UIColors such as:
label.textColor = UIColor.greenHere’s a full list of UIColors

The Complete iOS App Development Bootcamp
Disclosure: This website may contain affiliate links, meaning when you click the links and make a purchase, we receive a commission.