macOS Link

NSColor.linkColor
macOS System Color
Adaptive System Token•macOS 10.10+ / 10.14+, AppKit

Complete 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.

Light Mode#0068DA
Dark Mode#419CFF
Link Color Preview

A link to other content.

ColorNSColor.linkColor
Copy:
Dynamic Asset
macOS System Color
macOS 10.10+ / 10.14+, AppKit
Initializers & Color Spaces
Color(r:g:b:)Color(red: 0.000, green: 0.408, blue: 0.855)
Color(r:g:b:op:)Color(red: 0.000, green: 0.408, blue: 0.855, opacity: 1.00)
Color(hue:sat:bri:)HSBColor(hue: 0.587, saturation: 1.000, brightness: 0.855, opacity: 1.00)
Color(.displayP3)Wide GamutColor(.displayP3, red: 0.169, green: 0.400, blue: 0.827, opacity: 1.00)
Color(.sRGB)Color(.sRGB, red: 0.000, green: 0.408, blue: 0.855, opacity: 1.00)
Color(hex:)ExtensionColor(hex: "#0068DA")
#colorLiteralXcode#colorLiteral(red: 0.000, green: 0.408, blue: 0.855, alpha: 1.00)
Color(uiColor:)iOSColor(uiColor: UIColor(red: 0.000, green: 0.408, blue: 0.855, alpha: 1.00))
Active HEX: #0068DAP3 R: 0.169 G: 0.400 B: 0.827

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#0068DA#419CFFColor(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 / HSBhsl(211, 100%, 43%)hsl(211, 100%, 63%)Color(hue:sat:bri:)
Platform BridgeUIKit: UIColor.linkAppKit: NSColor.linkColorColor(uiColor:) / Color(nsColor:)

Light Appearance

Light Theme
HEX Code
#0068DA
RGB (0–255)
rgb(0, 104, 218)
HSL
hsl(211, 100%, 43%)
Normalized Swift Literal:
(r: 0.000, g: 0.408, b: 0.855)

Dark Appearance

Dark Theme
HEX Code
#419CFF
RGB (0–255)
rgb(65, 156, 255)
HSL
hsl(211, 100%, 63%)
Normalized Swift Literal:
(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.

Xcode Location: Save as Contents.json inside Assets.xcassets/Link.colorset/
Includes Light + Dark Modes
Contents.json
{
  "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.

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

●SwiftUI Notification

Just now

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

Dynamic Headline in Link

.foregroundStyle(NSColor.linkColor)

Platform Implementation Snippets

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

AppKit (macOS Swift)
// 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.

Light Mode (#0068DA)on White (#FFF)
Contrast Ratio:5.26:1
Normal Text (4.5:1 AA): Pass (AA)
Dark Mode (#419CFF)on Dark (#1C1C1E)
Contrast Ratio:6.02:1
Normal Text (4.5:1 AA): Pass (AA)

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

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.