iOS System Purple

UIColor.systemPurple
Semantic Accent & Interactive Tint
Adaptive System Token•iOS 13.0+, iPadOS 13.0+, macCatalyst 13.0+

Complete technical specification and developer reference for System Purple in Apple's iOS & iPadOS design system. In light appearance, it resolves to HEX #AF52DE; in dark appearance, it dynamically adapts to HEX #BF5AF2. 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#BF5AF2
System Purple Color Preview

A purple color that adapts to the current trait environment.

ColorUIColor.systemPurple
Copy:
Dynamic Asset
Semantic Accent & Interactive Tint
iOS 13.0+, iPadOS 13.0+, macCatalyst 13.0+
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#BF5AF2Color(hex: "#AF52DE")
sRGB (0–255)rgb(175, 82, 222)rgb(191, 90, 242)(r: 0.686, g: 0.322, b: 0.871)
Display P3 (Wide Gamut)P3 (0.639, 0.341, 0.843)P3 (0.698, 0.376, 0.918)Color(.displayP3, ...)
HSL / HSBhsl(280, 68%, 60%)hsl(280, 85%, 65%)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
#BF5AF2
RGB (0–255)
rgb(191, 90, 242)
HSL
hsl(280, 85%, 65%)
Normalized Swift Literal:
(r: 0.749, g: 0.353, b: 0.949)

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.749",
          "green": "0.353",
          "blue": "0.949",
          "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 (#BF5AF2)on Dark (#1C1C1E)
Contrast Ratio:4.83:1
Normal Text (4.5:1 AA): Pass (AA)

Recommended HIG Use Cases

  • Primary action buttons and tint accents
  • Status alerts, badges, and notification tags
  • Active tab bar icons and control highlights

Anti-Patterns to Avoid

  • Full background fills behind body copy
  • Unstyled plain paragraph text

Frequently Asked Questions

How do I use UIColor.systemPurple in iOS and iPadOS apps?

In UIKit, assign UIColor.systemPurple directly to properties like view.backgroundColor, label.textColor, or tintColor. In SwiftUI, bridge it using Color(uiColor: .systemPurple).

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

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

How do I bridge UIColor.systemPurple into SwiftUI?

In SwiftUI views on iOS 15+, initialize Color(uiColor: .systemPurple) to utilize this system color with full appearance dynamism.

Does System Purple adapt automatically to dark appearance in iOS?

Yes, UIColor.systemPurple is an appearance-aware dynamic UIColor that automatically responds to UITraitCollection changes between light and dark appearances.

Why use UIKit system colors instead of hardcoded hex values?

System colors dynamically adapt to Dark Mode, Accessibility Increase Contrast mode, and future iOS visual refinements without manual color bookkeeping.