iOS Opaque Separator

UIColor.opaqueSeparator
Visual Boundaries & Hairlines
Adaptive System Token•iOS 13.0+, iPadOS 13.0+, macCatalyst 13.0+

Complete technical specification and developer reference for Opaque Separator in Apple's iOS & iPadOS design system. In light appearance, it resolves to HEX #C6C6C8; in dark appearance, it dynamically adapts to HEX #38383A. Features wide-gamut Display P3 values, UIKit bridge (UIColor.opaqueSeparator), AppKit bridge (NSColor.separatorColor), WCAG contrast audit, and Xcode drop-in initializers.

Light Mode#C6C6C8
Dark Mode#38383A
Opaque Separator Color Preview

A separator that fully obscures content behind it.

ColorUIColor.opaqueSeparator
Copy:
Dynamic Asset
Visual Boundaries & Hairlines
iOS 13.0+, iPadOS 13.0+, macCatalyst 13.0+
Initializers & Color Spaces
Color(r:g:b:)Color(red: 0.776, green: 0.776, blue: 0.784)
Color(r:g:b:op:)Color(red: 0.776, green: 0.776, blue: 0.784, opacity: 1.00)
Color(hue:sat:bri:)HSBColor(hue: 0.667, saturation: 0.010, brightness: 0.784, opacity: 1.00)
Color(.displayP3)Wide GamutColor(.displayP3, red: 0.776, green: 0.776, blue: 0.784, opacity: 1.00)
Color(.sRGB)Color(.sRGB, red: 0.776, green: 0.776, blue: 0.784, opacity: 1.00)
Color(hex:)ExtensionColor(hex: "#C6C6C8")
#colorLiteralXcode#colorLiteral(red: 0.776, green: 0.776, blue: 0.784, alpha: 1.00)
Color(uiColor:)iOSColor(uiColor: UIColor(red: 0.776, green: 0.776, blue: 0.784, alpha: 1.00))
Active HEX: #C6C6C8P3 R: 0.776 G: 0.776 B: 0.784

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#C6C6C8#38383AColor(hex: "#C6C6C8")
sRGB (0–255)rgb(198, 198, 200)rgb(56, 56, 58)(r: 0.776, g: 0.776, b: 0.784)
Display P3 (Wide Gamut)P3 (0.776, 0.776, 0.784)P3 (0.220, 0.220, 0.227)Color(.displayP3, ...)
HSL / HSBhsl(240, 2%, 78%)hsl(240, 2%, 22%)Color(hue:sat:bri:)
Platform BridgeUIKit: UIColor.opaqueSeparatorAppKit: NSColor.separatorColorColor(uiColor:) / Color(nsColor:)

Light Appearance

Light Theme
HEX Code
#C6C6C8
RGB (0–255)
rgb(198, 198, 200)
HSL
hsl(240, 2%, 78%)
Normalized Swift Literal:
(r: 0.776, g: 0.776, b: 0.784)

Dark Appearance

Dark Theme
HEX Code
#38383A
RGB (0–255)
rgb(56, 56, 58)
HSL
hsl(240, 2%, 22%)
Normalized Swift Literal:
(r: 0.220, g: 0.220, b: 0.227)

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/Opaque Separator.colorset/
Includes Light + Dark Modes
Contents.json
{
  "colors": [
    {
      "color": {
        "color-space": "srgb",
        "components": {
          "red": "0.776",
          "green": "0.776",
          "blue": "0.784",
          "alpha": "1.000"
        }
      },
      "idiom": "universal"
    },
    {
      "appearances": [
        {
          "appearance": "luminosity",
          "value": "dark"
        }
      ],
      "color": {
        "color-space": "srgb",
        "components": {
          "red": "0.220",
          "green": "0.220",
          "blue": "0.227",
          "alpha": "1.000"
        }
      },
      "idiom": "universal"
    }
  ],
  "info": {
    "author": "xcode",
    "version": 1
  }
}

Live UI Component Sandbox

Preview Color.opaque separator 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 Opaque Separator accents.

Dynamic Headline in Opaque Separator

.foregroundStyle(UIColor.opaqueSeparator)

Platform Implementation Snippets

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

UIKit (Swift)
// UIKit (iOS, tvOS, watchOS)
let view = UIView()
view.backgroundColor = UIColor.opaqueSeparator

// Label Tinting
let label = UILabel()
label.textColor = UIColor.opaqueSeparator

// Bridging UIKit into SwiftUI
let swiftUIColor = Color(uiColor: .opaqueSeparator)

WCAG 2.1 Accessibility Contrast Audit

Contrast calculations of Opaque Separator against pure white and iOS OLED dark surfaces.

Light Mode (#C6C6C8)on White (#FFF)
Contrast Ratio:1.71:1
Normal Text (4.5:1 AA): Fail
Dark Mode (#38383A)on Dark (#1C1C1E)
Contrast Ratio:1.45:1
Normal Text (4.5:1 AA): Fail

Recommended HIG Use Cases

  • Table view row separators and list dividers
  • Card outlines and section boundaries
  • Navigation bar hairline rules

Anti-Patterns to Avoid

  • Readable body text or icons
  • Solid button backgrounds

Frequently Asked Questions

How do I use UIColor.opaqueSeparator in iOS and iPadOS apps?

In UIKit, assign UIColor.opaqueSeparator directly to properties like view.backgroundColor, label.textColor, or tintColor. In SwiftUI, bridge it using Color(uiColor: .opaqueSeparator).

What is the HEX code for iOS Opaque Separator in light and dark mode?

In light appearance, Opaque Separator resolves to #C6C6C8. In dark appearance, it automatically adapts to #38383A.

How do I bridge UIColor.opaqueSeparator into SwiftUI?

In SwiftUI views on iOS 15+, initialize Color(uiColor: .opaqueSeparator) to utilize this system color with full appearance dynamism.

Does Opaque Separator adapt automatically to dark appearance in iOS?

Yes, UIColor.opaqueSeparator is an appearance-aware dynamic UIColor that automatically responds to UITraitCollection changes between light and dark appearances.

Why use UIKit system colors instead of hardcoded hex values?

System colors dynamically adapt to Dark Mode, Accessibility Increase Contrast mode, and future iOS visual refinements without manual color bookkeeping.