SwiftUI Color.pink
.pinkComplete technical specification and developer reference for Pink in Apple's SwiftUI design system. In light appearance, it resolves to HEX #FF2D55; in dark appearance, it dynamically adapts to HEX #FF375F. Features wide-gamut Display P3 values, UIKit bridge (UIColor.systemPink), AppKit bridge (NSColor.systemPink), WCAG contrast audit, and Xcode drop-in initializers.
SwiftUI's adaptable pink.
Color.pinkColor(red: 1.000, green: 0.176, blue: 0.333)Color(red: 1.000, green: 0.176, blue: 0.333, opacity: 1.00)Color(hue: 0.968, saturation: 0.824, brightness: 1.000, opacity: 1.00)Color(.displayP3, red: 0.922, green: 0.267, blue: 0.353, opacity: 1.00)Color(.sRGB, red: 1.000, green: 0.176, blue: 0.333, opacity: 1.00)Color(hex: "#FF2D55")#colorLiteral(red: 1.000, green: 0.176, blue: 0.333, alpha: 1.00)Color(uiColor: UIColor(red: 1.000, green: 0.176, blue: 0.333, alpha: 1.00))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 / Space | Light Appearance | Dark Appearance | Swift Code Literal |
|---|---|---|---|
| HEX Code | #FF2D55 | #FF375F | Color(hex: "#FF2D55") |
| sRGB (0–255) | rgb(255, 45, 85) | rgb(255, 55, 95) | (r: 1.000, g: 0.176, b: 0.333) |
| Display P3 (Wide Gamut) | P3 (0.922, 0.267, 0.353) | P3 (0.922, 0.294, 0.388) | Color(.displayP3, ...) |
| HSL / HSB | hsl(349, 100%, 59%) | hsl(348, 100%, 61%) | Color(hue:sat:bri:) |
| Platform Bridge | UIKit: UIColor.systemPink | AppKit: NSColor.systemPink | Color(uiColor:) / Color(nsColor:) |
Light Appearance
#FF2D55rgb(255, 45, 85)hsl(349, 100%, 59%)(r: 1.000, g: 0.176, b: 0.333)Dark Appearance
#FF375Frgb(255, 55, 95)hsl(348, 100%, 61%)(r: 1.000, g: 0.216, b: 0.373)Drop-In Developer Snippets
Ready-to-paste code blocks for Xcode asset catalogs and Swift files.
Contents.json inside Assets.xcassets/Pink.colorset/{
"colors": [
{
"color": {
"color-space": "srgb",
"components": {
"red": "1.000",
"green": "0.176",
"blue": "0.333",
"alpha": "1.000"
}
},
"idiom": "universal"
},
{
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
],
"color": {
"color-space": "srgb",
"components": {
"red": "1.000",
"green": "0.216",
"blue": "0.373",
"alpha": "1.000"
}
},
"idiom": "universal"
}
],
"info": {
"author": "xcode",
"version": 1
}
}Live UI Component Sandbox
Preview Color.pink inside standard Apple interface components.
●SwiftUI Notification
Just nowDemonstrates how Apple designers pair system background tints with dynamic Pink accents.
.foregroundStyle(.pink)
Platform Implementation Snippets
Ready-to-use Swift code for SwiftUI, UIKit, and AppKit applications.
// Standard SwiftUI Usage
Text("Hello, Apple")
.foregroundStyle(Color.pink)
// Background & Shape Fill
RoundedRectangle(cornerRadius: 16)
.fill(Color.pink)
.frame(width: 200, height: 50)
// Prominent Action Button
Button("Confirm Action") {
// Action
}
.buttonStyle(.borderedProminent)
.tint(Color.pink)WCAG 2.1 Accessibility Contrast Audit
Contrast calculations of Pink against pure white and iOS OLED dark surfaces.
Recommended HIG Use Cases
- Fitness, health metrics, and heart rate indicators
- Favorite bookmarks and social reactions
- Lifestyle personalization accents
Anti-Patterns to Avoid
- Standard neutral system dialogs
Browse More SwiftUI Colors
Quickly jump to other Apple system colors and semantic tokens.
Frequently Asked Questions
How do I use Color.pink in SwiftUI?
In SwiftUI, apply the color directly using view modifiers like .foregroundStyle(.pink), .tint(.pink), or .background(.pink). You can also instantiate it via Color.pink.
What is the HEX code for SwiftUI Pink in light and dark mode?
In light appearance, SwiftUI Pink resolves to #FF2D55. In dark appearance, it automatically adapts to #FF375F.
What is the UIKit and AppKit equivalent of SwiftUI Color.pink?
The UIKit equivalent is UIColor.systemPink (accessible in SwiftUI via Color(uiColor: .systemPink)). The AppKit equivalent is NSColor.systemPink (accessible via Color(nsColor: .systemPink)).
Does SwiftUI Color.pink adapt automatically to dark mode?
Yes, Color.pink is a dynamic Apple system token that automatically updates between light (#FF2D55) and dark (#FF375F) appearances when the system appearance changes.
What is the Display P3 and sRGB value of Color.pink?
Color.pink uses resolved sRGB values (#FF2D55 in light, #FF375F in dark) and supports wide color gamut Display P3 coordinates for high-fidelity rendering on Apple Retina displays.