macOS System Brown

NSColor.systemBrown
Accent & Semantic Highlights
Adaptive System Token•macOS 10.10+ / 10.14+, AppKit

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

Light Mode#AC7F5E
Dark Mode#B78A66
System Brown Color Preview

A brown color that automatically adapts to the current appearance.

ColorNSColor.systemBrown
Copy:
Dynamic Asset
Accent & Semantic Highlights
macOS 10.10+ / 10.14+, AppKit
Initializers & Color Spaces
Color(r:g:b:)Color(red: 0.675, green: 0.498, blue: 0.369)
Color(r:g:b:op:)Color(red: 0.675, green: 0.498, blue: 0.369, opacity: 1.00)
Color(hue:sat:bri:)HSBColor(hue: 0.071, saturation: 0.453, brightness: 0.675, opacity: 1.00)
Color(.displayP3)Wide GamutColor(.displayP3, red: 0.647, green: 0.506, blue: 0.388, opacity: 1.00)
Color(.sRGB)Color(.sRGB, red: 0.675, green: 0.498, blue: 0.369, opacity: 1.00)
Color(hex:)ExtensionColor(hex: "#AC7F5E")
#colorLiteralXcode#colorLiteral(red: 0.675, green: 0.498, blue: 0.369, alpha: 1.00)
Color(uiColor:)iOSColor(uiColor: UIColor(red: 0.675, green: 0.498, blue: 0.369, alpha: 1.00))
Active HEX: #AC7F5EP3 R: 0.647 G: 0.506 B: 0.388

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#AC7F5E#B78A66Color(hex: "#AC7F5E")
sRGB (0–255)rgb(172, 127, 94)rgb(183, 138, 102)(r: 0.675, g: 0.498, b: 0.369)
Display P3 (Wide Gamut)P3 (0.647, 0.506, 0.388)P3 (0.690, 0.549, 0.420)Color(.displayP3, ...)
HSL / HSBhsl(25, 32%, 52%)hsl(27, 36%, 56%)Color(hue:sat:bri:)
Platform BridgeUIKit: UIColor.systemBrownAppKit: NSColor.systemBrownColor(uiColor:) / Color(nsColor:)

Light Appearance

Light Theme
HEX Code
#AC7F5E
RGB (0–255)
rgb(172, 127, 94)
HSL
hsl(25, 32%, 52%)
Normalized Swift Literal:
(r: 0.675, g: 0.498, b: 0.369)

Dark Appearance

Dark Theme
HEX Code
#B78A66
RGB (0–255)
rgb(183, 138, 102)
HSL
hsl(27, 36%, 56%)
Normalized Swift Literal:
(r: 0.718, g: 0.541, b: 0.400)

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 Brown.colorset/
Includes Light + Dark Modes
Contents.json
{
  "colors": [
    {
      "color": {
        "color-space": "srgb",
        "components": {
          "red": "0.675",
          "green": "0.498",
          "blue": "0.369",
          "alpha": "1.000"
        }
      },
      "idiom": "universal"
    },
    {
      "appearances": [
        {
          "appearance": "luminosity",
          "value": "dark"
        }
      ],
      "color": {
        "color-space": "srgb",
        "components": {
          "red": "0.718",
          "green": "0.541",
          "blue": "0.400",
          "alpha": "1.000"
        }
      },
      "idiom": "universal"
    }
  ],
  "info": {
    "author": "xcode",
    "version": 1
  }
}

Live UI Component Sandbox

Preview Color.system brown 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 Brown accents.

Dynamic Headline in System Brown

.foregroundStyle(NSColor.systemBrown)

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

// Custom Layer Tint
let layer = CALayer()
layer.backgroundColor = NSColor.systemBrown.cgColor

// Bridging AppKit into SwiftUI
let swiftUIColor = Color(nsColor: .systemBrown)

WCAG 2.1 Accessibility Contrast Audit

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

Light Mode (#AC7F5E)on White (#FFF)
Contrast Ratio:3.53:1
Normal Text (4.5:1 AA): Fail
Dark Mode (#B78A66)on Dark (#1C1C1E)
Contrast Ratio:5.54:1
Normal Text (4.5:1 AA): Pass (AA)

Recommended HIG Use Cases

  • AppKit accent highlights and badges
  • State indicators and notification tags
  • Sidebar icons and custom accessory views

Anti-Patterns to Avoid

  • Unstyled plain paragraph text
  • Full window backgrounds

Frequently Asked Questions

How do I use NSColor.systemBrown in macOS AppKit apps?

In AppKit, assign NSColor.systemBrown to NSView, NSTextField, or NSButton styling. In SwiftUI on macOS, bridge it using Color(nsColor: .systemBrown).

What is the HEX code for macOS System Brown in light and dark mode?

In light appearance, System Brown resolves to #AC7F5E. In dark appearance, it automatically adapts to #B78A66.

How do I bridge NSColor.systemBrown into SwiftUI?

In SwiftUI views on macOS, instantiate Color(nsColor: .systemBrown) to access the native AppKit dynamic color token.

Does System Brown adapt to Dark Mode and vibrancy in macOS?

Yes, NSColor.systemBrown 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.