Standard Colors

Retrieve the standard color objects for common colors like red, blue, green, black, white, and more.

Topics

Adaptable System Colors

systemBlueColor

Returns a color object for blue that automatically adapts to vibrancy and accessibility settings.

systemBrownColor

Returns a color object for brown that automatically adapts to vibrancy and accessibility settings.

systemGrayColor

Returns a color object for gray that automatically adapts to vibrancy and accessibility settings.

systemGreenColor

Returns a color object for green that automatically adapts to vibrancy and accessibility settings.

systemOrangeColor

Returns a color object for orange that automatically adapts to vibrancy and accessibility settings.

systemPinkColor

Returns a color object for pink that automatically adapts to vibrancy and accessibility settings.

systemPurpleColor

Returns a color object for purple that automatically adapts to vibrancy and accessibility settings.

systemRedColor

Returns a color object for red that automatically adapts to vibrancy and accessibility settings.

systemYellowColor

Returns a color object for yellow that automatically adapts to vibrancy and accessibility settings.

Transparent Color

clearColor

Returns a color object whose grayscale and alpha values are both 0.0.

Fixed Colors

blackColor

Returns a color object whose grayscale value is 0.0 and whose alpha value is 1.0.

blueColor

Returns a color object whose RGB value is 0.0, 0.0, 1.0 and whose alpha value is 1.0.

brownColor

Returns a color object whose RGB value is 0.6, 0.4, 0.2 and whose alpha value is 1.0.

cyanColor

Returns a color object whose RGB value is 0.0, 1.0, 1.0 and whose alpha value is 1.0.

darkGrayColor

Returns a color object whose grayscale value is 1/3 and whose alpha value is 1.0.

grayColor

Returns a color object whose grayscale value is 0.5 and whose alpha value is 1.0.

greenColor

Returns a color object whose RGB value is 0.0, 1.0, 0.0 and whose alpha value is 1.0.

lightGrayColor

Returns a color object whose grayscale value is 2/3 and whose alpha value is 1.0.

magentaColor

Returns a color object whose RGB value is 1.0, 0.0, 1.0 and whose alpha value is 1.0.

orangeColor

Returns a color object whose RGB value is 1.0, 0.5, 0.0 and whose alpha value is 1.0.

purpleColor

Returns a color object whose RGB value is 0.5, 0.0, 0.5 and whose alpha value is 1.0.

redColor

Returns a color object whose RGB value is 1.0, 0.0, 0.0 and whose alpha value is 1.0.

whiteColor

Returns a color object whose grayscale and alpha values are both 1.0.

yellowColor

Returns a color object whose RGB value is 1.0, 1.0, 0.0 and whose alpha value is 1.0.

See Also

Getting and Creating Colors

UI Element Colors

Retrieve standard color objects for use with windows, controls, labels, text, selections and other content in your app.

Color Creation

Load colors from asset catalogs, and create colors from raw component values, such as those used by grayscale, RGB, HSB, and CMYK colors.