macOS Link
NSColor.linkColorComplete technical specification and developer reference for Link in Apple's macOS design system. In light appearance, it resolves to HEX #0068DA; in dark appearance, it dynamically adapts to HEX #419CFF. Features wide-gamut Display P3 values, UIKit bridge (UIColor.link), AppKit bridge (NSColor.linkColor), WCAG contrast audit, and Xcode drop-in initializers.
A link to other content.
ColorNSColor.linkColorColor(red: 0.000, green: 0.408, blue: 0.855)Color(red: 0.000, green: 0.408, blue: 0.855, opacity: 1.00)Color(hue: 0.587, saturation: 1.000, brightness: 0.855, opacity: 1.00)Color(.displayP3, red: 0.169, green: 0.400, blue: 0.827, opacity: 1.00)Color(.sRGB, red: 0.000, green: 0.408, blue: 0.855, opacity: 1.00)Color(hex: "#0068DA")#colorLiteral(red: 0.000, green: 0.408, blue: 0.855, alpha: 1.00)Color(uiColor: UIColor(red: 0.000, green: 0.408, blue: 0.855, 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 | #0068DA | #419CFF | Color(hex: "#0068DA") |
| sRGB (0–255) | rgb(0, 104, 218) | rgb(65, 156, 255) | (r: 0.000, g: 0.408, b: 0.855) |
| Display P3 (Wide Gamut) | P3 (0.169, 0.400, 0.827) | P3 (0.353, 0.604, 0.973) | Color(.displayP3, ...) |
| HSL / HSB | hsl(211, 100%, 43%) | hsl(211, 100%, 63%) | Color(hue:sat:bri:) |
| Platform Bridge | UIKit: UIColor.link | AppKit: NSColor.linkColor | Color(uiColor:) / Color(nsColor:) |
Light Appearance
#0068DArgb(0, 104, 218)hsl(211, 100%, 43%)(r: 0.000, g: 0.408, b: 0.855)Dark Appearance
#419CFFrgb(65, 156, 255)hsl(211, 100%, 63%)(r: 0.255, g: 0.612, b: 1.000)Drop-In Developer Snippets
Ready-to-paste code blocks for Xcode asset catalogs and Swift files.
Contents.json inside Assets.xcassets/Link.colorset/{
"colors": [
{
"color": {
"color-space": "srgb",
"components": {
"red": "0.000",
"green": "0.408",
"blue": "0.855",
"alpha": "1.000"
}
},
"idiom": "universal"
},
{
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
],
"color": {
"color-space": "srgb",
"components": {
"red": "0.255",
"green": "0.612",
"blue": "1.000",
"alpha": "1.000"
}
},
"idiom": "universal"
}
],
"info": {
"author": "xcode",
"version": 1
}
}Live UI Component Sandbox
Preview Color.link inside standard Apple interface components.
●SwiftUI Notification
Just nowDemonstrates how Apple designers pair system background tints with dynamic Link accents.
.foregroundStyle(NSColor.linkColor)
Platform Implementation Snippets
Ready-to-use Swift code for SwiftUI, UIKit, and AppKit applications.
// AppKit (macOS)
let button = NSButton()
button.contentTintColor = NSColor.linkColor
// Custom Layer Tint
let layer = CALayer()
layer.backgroundColor = NSColor.linkColor.cgColor
// Bridging AppKit into SwiftUI
let swiftUIColor = Color(nsColor: .linkColor)WCAG 2.1 Accessibility Contrast Audit
Contrast calculations of Link against pure white and iOS OLED dark surfaces.
Recommended HIG Use Cases
- AppKit desktop interfaces
- macOS native controls
- Dark Mode & Vibrant surfaces
Anti-Patterns to Avoid
- Hardcoded static hex values when appearance-aware adaptation is needed
Browse More macOS Colors
Quickly jump to other Apple system colors and semantic tokens.
Frequently Asked Questions
How do I use NSColor.linkColor in macOS AppKit apps?
In AppKit, assign NSColor.linkColor to NSView, NSTextField, or NSButton styling. In SwiftUI on macOS, bridge it using Color(nsColor: .linkColor).
What is the HEX code for macOS Link in light and dark mode?
In light appearance, Link resolves to #0068DA. In dark appearance, it automatically adapts to #419CFF.
How do I bridge NSColor.linkColor into SwiftUI?
In SwiftUI views on macOS, instantiate Color(nsColor: .linkColor) to access the native AppKit dynamic color token.
Does Link adapt to Dark Mode and vibrancy in macOS?
Yes, NSColor.linkColor is an appearance-aware NSColor that updates automatically when switching between light and dark modes or across vibrant desktop materials.
Why use AppKit system colors instead of hardcoded hex values?
NSColor system tokens adapt automatically to user accent color preferences, Dark Mode, and accessibility contrast settings.