Standard Colors

The standard color objects for specific shades such as red, blue, green, black, white, and more.

Topics

Adaptable Colors

class var systemBlue: UIColor

A blue color that automatically adapts to the current trait environment.

class var systemGreen: UIColor

A green color that automatically adapts to the current trait environment.

class var systemIndigo: UIColor

An indigo color that automatically adapts to the current trait environment.

Beta
class var systemOrange: UIColor

An orange color that automatically adapts to the current trait environment.

class var systemPink: UIColor

A pink color that automatically adapts to the current trait environment.

class var systemPurple: UIColor

A purple color that automatically adapts to the current trait environment.

class var systemRed: UIColor

A red color that automatically adapts to the current trait environment.

class var systemTeal: UIColor

A teal color that automatically adapts to the current trait environment.

class var systemYellow: UIColor

A yellow color that automatically adapts to the current trait environment.

Adaptable Gray Colors

class var systemGray: UIColor

The base gray color.

class var systemGray2: UIColor

A second-level shade of grey.

Beta
class var systemGray3: UIColor

A third-level shade of grey.

Beta
class var systemGray4: UIColor

A fourth-level shade of grey.

Beta
class var systemGray5: UIColor

A fifth-level shade of grey.

Beta
class var systemGray6: UIColor

A sixth-level shade of grey.

Beta

Transparent Color

class var clear: UIColor

A color object with grayscale and alpha values that are both 0.0.

Fixed Colors

class var black: UIColor

A color object in the sRGB color space with a grayscale value of 0.0 and an alpha value of 1.0.

class var blue: UIColor

A color object with RGB values of 0.0, 0.0, and 1.0 and an alpha value of 1.0.

class var brown: UIColor

A color object with RGB values of 0.6, 0.4, and 0.2 and an alpha value of 1.0.

class var cyan: UIColor

A color object with RGB values of 0.0, 1.0, and 1.0 and an alpha value of 1.0.

class var darkGray: UIColor

A color object with a grayscale value of 1/3 and an alpha value of 1.0.

class var gray: UIColor

A color object with a grayscale value of 0.5 and an alpha value of 1.0.

class var green: UIColor

A color object with RGB values of 0.0, 1.0, and 0.0 and an alpha value of 1.0.

class var lightGray: UIColor

A color object with a grayscale value of 2/3 and an alpha value of 1.0.

class var magenta: UIColor

A color object with RGB values of 1.0, 0.0, and 1.0 and an alpha value of 1.0.

class var orange: UIColor

A color object with RGB values of 1.0, 0.5, and 0.0 and an alpha value of 1.0.

class var purple: UIColor

A color object with RGB values of 0.5, 0.0, and 0.5 and an alpha value of 1.0.

class var red: UIColor

A color object with RGB values of 1.0, 0.0, and 0.0 and an alpha value of 1.0.

class var white: UIColor

A color object with a grayscale value of 1.0 and an alpha value of 1.0.

class var yellow: UIColor

A color object with RGB values of 1.0, 1.0, and 0.0 and an alpha value of 1.0.

See Also

Getting Existing Colors

UI Element Colors

The standard color objects for use with labels, text, backgrounds, links, and more.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software