SwiftUI Color.brown

.brown
Neutral Warmth & Specialized Categories
Adaptive System Token•iOS 14.0+, macOS 11.0+, tvOS 14.0+, watchOS 7.0+, visionOS 1.0+

Complete technical specification and developer reference for Brown in Apple's SwiftUI 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
Brown Color Preview

SwiftUI's adaptable brown.

Color.brown
Copy:
Dynamic Asset
Neutral Warmth & Specialized Categories
iOS 14.0+, macOS 11.0+, tvOS 14.0+, watchOS 7.0+, visionOS 1.0+
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/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.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 Brown accents.

Dynamic Headline in Brown

.foregroundStyle(.brown)

Platform Implementation Snippets

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

SwiftUI (Swift 5.9+)
// Standard SwiftUI Usage
Text("Hello, Apple")
    .foregroundStyle(Color.brown)

// Background & Shape Fill
RoundedRectangle(cornerRadius: 16)
    .fill(Color.brown)
    .frame(width: 200, height: 50)

// Prominent Action Button
Button("Confirm Action") {
    // Action
}
.buttonStyle(.borderedProminent)
.tint(Color.brown)

WCAG 2.1 Accessibility Contrast Audit

Contrast calculations of 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

  • Reading and e-book interfaces
  • Earth, wood, coffee, and physical category tags
  • Warm palette grouping

Anti-Patterns to Avoid

  • Primary call-to-action buttons
  • Urgent status alerts

Browse More SwiftUI Colors

Quickly jump to other Apple system colors and semantic tokens.

All 18 Colors →

Frequently Asked Questions

How do I use Color.brown in SwiftUI?

In SwiftUI, apply the color directly using view modifiers like .foregroundStyle(.brown), .tint(.brown), or .background(.brown). You can also instantiate it via Color.brown.

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

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

What is the UIKit and AppKit equivalent of SwiftUI Color.brown?

The UIKit equivalent is UIColor.systemBrown (accessible in SwiftUI via Color(uiColor: .systemBrown)). The AppKit equivalent is NSColor.systemBrown (accessible via Color(nsColor: .systemBrown)).

Does SwiftUI Color.brown adapt automatically to dark mode?

Yes, Color.brown is a dynamic Apple system token that automatically updates between light (#AC7F5E) and dark (#B78A66) appearances when the system appearance changes.

What is the Display P3 and sRGB value of Color.brown?

Color.brown uses resolved sRGB values (#AC7F5E in light, #B78A66 in dark) and supports wide color gamut Display P3 coordinates for high-fidelity rendering on Apple Retina displays.