<!--
{
  "documentType" : "article",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/ui-element-colors",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "UI element colors"
}
-->

# UI element colors

Choose colors for UI elements such as labels, text, backgrounds, and links.

## Discussion

UIKit provides color objects for the foreground and background colors of your app’s UI elements. The names of these color objects reflect their intended use, rather than specific color values.

Except where noted, the color objects adapt automatically to Dark Mode changes when you use the provided [`UIColor`](/documentation/UIKit/UIColor) object. If you retrieve the color values, either directly or using another type such as <doc://com.apple.documentation/documentation/CoreGraphics/CGColor>, you must handle Dark Mode changes yourself. For more information about supporting Dark Mode, see [Supporting Dark Mode in your interface](/documentation/UIKit/supporting-dark-mode-in-your-interface).

## Topics

### Label colors

[`label`](/documentation/UIKit/UIColor/label)

The color for text labels that contain primary content.

[`secondaryLabel`](/documentation/UIKit/UIColor/secondaryLabel)

The color for text labels that contain secondary content.

[`tertiaryLabel`](/documentation/UIKit/UIColor/tertiaryLabel)

The color for text labels that contain tertiary content.

[`quaternaryLabel`](/documentation/UIKit/UIColor/quaternaryLabel)

The color for text labels that contain quaternary content.

### Fill colors

[`systemFill`](/documentation/UIKit/UIColor/systemFill)

An overlay fill color for thin and small shapes.

[`secondarySystemFill`](/documentation/UIKit/UIColor/secondarySystemFill)

An overlay fill color for medium-size shapes.

[`tertiarySystemFill`](/documentation/UIKit/UIColor/tertiarySystemFill)

An overlay fill color for large shapes.

[`quaternarySystemFill`](/documentation/UIKit/UIColor/quaternarySystemFill)

An overlay fill color for large areas that contain complex content.

### Text colors

[`placeholderText`](/documentation/UIKit/UIColor/placeholderText)

The color for placeholder text in controls or text views.

### Tint color

[`tintColor`](/documentation/UIKit/UIColor/tintColor)

A color value that resolves at runtime based on the current tint color of the app or trait hierarchy.

### Standard content background colors

[`systemBackground`](/documentation/UIKit/UIColor/systemBackground)

The color for the main background of your interface.

[`secondarySystemBackground`](/documentation/UIKit/UIColor/secondarySystemBackground)

The color for content layered on top of the main background.

[`tertiarySystemBackground`](/documentation/UIKit/UIColor/tertiarySystemBackground)

The color for content layered on top of secondary backgrounds.

### Grouped content background colors

[`systemGroupedBackground`](/documentation/UIKit/UIColor/systemGroupedBackground)

The color for the main background of your grouped interface.

[`secondarySystemGroupedBackground`](/documentation/UIKit/UIColor/secondarySystemGroupedBackground)

The color for content layered on top of the main background of your grouped interface.

[`tertiarySystemGroupedBackground`](/documentation/UIKit/UIColor/tertiarySystemGroupedBackground)

The color for content layered on top of secondary backgrounds of your grouped interface.

### Separator colors

[`separator`](/documentation/UIKit/UIColor/separator)

The color for thin borders or divider lines that allows some underlying content to be visible.

[`opaqueSeparator`](/documentation/UIKit/UIColor/opaqueSeparator)

The color for borders or divider lines that hides any underlying content.

### Link color

[`link`](/documentation/UIKit/UIColor/link)

The specified color for links.

### Nonadaptable colors

[`darkText`](/documentation/UIKit/UIColor/darkText)

The nonadaptable system color for text on a light background.

[`lightText`](/documentation/UIKit/UIColor/lightText)

The nonadaptable system color for text on a dark background.

### Deprecated colors

[`groupTableViewBackground`](/documentation/UIKit/UIColor/groupTableViewBackground)

The system color to use for the background of a grouped table.

[`scrollViewTexturedBackgroundColor`](/documentation/UIKit/UIColor/scrollViewTexturedBackgroundColor)

The system pattern color to use for the area behind scrollable content.

[`underPageBackgroundColor`](/documentation/UIKit/UIColor/underPageBackgroundColor)

The system pattern color to use for the background of a page.

[`viewFlipsideBackgroundColor`](/documentation/UIKit/UIColor/viewFlipsideBackgroundColor)

The system color to use for the back side of a view when it’s flipped.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)