tvOS System Purple

UIColor.systemPurple
tvOS Focus & Highlight Tint
Adaptive System Token•tvOS 13.0+, Apple TV

Complete technical specification and developer reference for System Purple in Apple's tvOS design system. In light appearance, it resolves to HEX #AF52DE; in dark appearance, it dynamically adapts to HEX #AF52DE. Features wide-gamut Display P3 values, UIKit bridge (UIColor.systemPurple), AppKit bridge (NSColor.systemPurple), WCAG contrast audit, and Xcode drop-in initializers.

Light Mode#AF52DE
Dark Mode#AF52DE
System Purple Color Preview

tvOS system purple from the trusted Xcode export.

ColorUIColor.systemPurple
Copy:
Dynamic Asset
tvOS Focus & Highlight Tint
tvOS 13.0+, Apple TV
Initializers & Color Spaces
Color(r:g:b:)Color(red: 0.686, green: 0.322, blue: 0.871)
Color(r:g:b:op:)Color(red: 0.686, green: 0.322, blue: 0.871, opacity: 1.00)
Color(hue:sat:bri:)HSBColor(hue: 0.777, saturation: 0.631, brightness: 0.871, opacity: 1.00)
Color(.displayP3)Wide GamutColor(.displayP3, red: 0.639, green: 0.341, blue: 0.843, opacity: 1.00)
Color(.sRGB)Color(.sRGB, red: 0.686, green: 0.322, blue: 0.871, opacity: 1.00)
Color(hex:)ExtensionColor(hex: "#AF52DE")
#colorLiteralXcode#colorLiteral(red: 0.686, green: 0.322, blue: 0.871, alpha: 1.00)
Color(uiColor:)iOSColor(uiColor: UIColor(red: 0.686, green: 0.322, blue: 0.871, alpha: 1.00))
Active HEX: #AF52DEP3 R: 0.639 G: 0.341 B: 0.843

Technical Color Specifications

Exact resolved HEX codes, sRGB 8-bit components, HSL, and normalized Swift floating-point decimals for Light and Dark modes.

Color Metric / SpaceLight AppearanceDark AppearanceSwift Code Literal
HEX Code#AF52DE#AF52DEColor(hex: "#AF52DE")
sRGB (0–255)rgb(175, 82, 222)rgb(175, 82, 222)(r: 0.686, g: 0.322, b: 0.871)
Display P3 (Wide Gamut)P3 (0.639, 0.341, 0.843)P3 (0.639, 0.341, 0.843)Color(.displayP3, ...)
HSL / HSBhsl(280, 68%, 60%)hsl(280, 68%, 60%)Color(hue:sat:bri:)
Platform BridgeUIKit: UIColor.systemPurpleAppKit: NSColor.systemPurpleColor(uiColor:) / Color(nsColor:)

Light Appearance

Light Theme
HEX Code
#AF52DE
RGB (0–255)
rgb(175, 82, 222)
HSL
hsl(280, 68%, 60%)
Normalized Swift Literal:
(r: 0.686, g: 0.322, b: 0.871)

Dark Appearance

Dark Theme
HEX Code
#AF52DE
RGB (0–255)
rgb(175, 82, 222)
HSL
hsl(280, 68%, 60%)
Normalized Swift Literal:
(r: 0.686, g: 0.322, b: 0.871)

Drop-In Developer Snippets

Ready-to-paste code blocks for Xcode asset catalogs and Swift files.

Xcode Location: Save as Contents.json inside Assets.xcassets/System Purple.colorset/
Includes Light + Dark Modes
Contents.json
{
  "colors": [
    {
      "color": {
        "color-space": "srgb",
        "components": {
          "red": "0.686",
          "green": "0.322",
          "blue": "0.871",
          "alpha": "1.000"
        }
      },
      "idiom": "universal"
    },
    {
      "appearances": [
        {
          "appearance": "luminosity",
          "value": "dark"
        }
      ],
      "color": {
        "color-space": "srgb",
        "components": {
          "red": "0.686",
          "green": "0.322",
          "blue": "0.871",
          "alpha": "1.000"
        }
      },
      "idiom": "universal"
    }
  ],
  "info": {
    "author": "xcode",
    "version": 1
  }
}

Live UI Component Sandbox

Preview Color.system purple inside standard Apple interface components.

Interactive Controls
Active TagBadge 99+
Toggle Tint
Container & Typography Styling

●SwiftUI Notification

Just now

Demonstrates how Apple designers pair system background tints with dynamic System Purple accents.

Dynamic Headline in System Purple

.foregroundStyle(UIColor.systemPurple)

Platform Implementation Snippets

Ready-to-use Swift code for SwiftUI, UIKit, and AppKit applications.

UIKit (Swift)
// UIKit (iOS, tvOS, watchOS)
let view = UIView()
view.backgroundColor = UIColor.systemPurple

// Label Tinting
let label = UILabel()
label.textColor = UIColor.systemPurple

// Bridging UIKit into SwiftUI
let swiftUIColor = Color(uiColor: .systemPurple)

WCAG 2.1 Accessibility Contrast Audit

Contrast calculations of System Purple against pure white and iOS OLED dark surfaces.

Light Mode (#AF52DE)on White (#FFF)
Contrast Ratio:4.13:1
Normal Text (4.5:1 AA): Fail
Dark Mode (#AF52DE)on Dark (#1C1C1E)
Contrast Ratio:4.12:1
Normal Text (4.5:1 AA): Fail

Recommended HIG Use Cases

  • Focused card borders and active button highlights
  • Playback progress bars and scrubbers
  • Media badges and category tags

Anti-Patterns to Avoid

  • Full television screen backdrops

Frequently Asked Questions

How do I use UIColor.systemPurple in tvOS apps?

In tvOS UIKit applications, assign UIColor.systemPurple directly to views and focusable controls. In SwiftUI on tvOS, use Color(uiColor: .systemPurple).

What is the HEX code for tvOS System Purple in light and dark mode?

In light appearance, System Purple resolves to #AF52DE. In dark appearance, it resolves to #AF52DE.

How does tvOS color rendering differ for the 10-foot experience?

tvOS colors are calibrated for high-contrast living room television viewing, ensuring clarity across distant screens and HDR displays.

Does tvOS System Purple adapt to system appearance changes?

Yes, Apple TV system colors automatically adjust to light or dark appearance settings in tvOS.