SwiftUI Color.orange
.orangeComplete technical specification and developer reference for Orange in Apple's SwiftUI design system. In light appearance, it resolves to HEX #FF8D28; in dark appearance, it dynamically adapts to HEX #FF9230. Features wide-gamut Display P3 values, UIKit bridge (UIColor.systemOrange), AppKit bridge (NSColor.systemOrange), WCAG contrast audit, and Xcode drop-in initializers.
SwiftUI's adaptable orange.
Color.orangeColor(red: 1.000, green: 0.553, blue: 0.157)Color(red: 1.000, green: 0.553, blue: 0.157, opacity: 1.00)Color(hue: 0.078, saturation: 0.843, brightness: 1.000, opacity: 1.00)Color(.displayP3, red: 0.941, green: 0.576, blue: 0.263, opacity: 1.00)Color(.sRGB, red: 1.000, green: 0.553, blue: 0.157, opacity: 1.00)Color(hex: "#FF8D28")#colorLiteral(red: 1.000, green: 0.553, blue: 0.157, alpha: 1.00)Color(uiColor: UIColor(red: 1.000, green: 0.553, blue: 0.157, 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 | #FF8D28 | #FF9230 | Color(hex: "#FF8D28") |
| sRGB (0–255) | rgb(255, 141, 40) | rgb(255, 146, 48) | (r: 1.000, g: 0.553, b: 0.157) |
| Display P3 (Wide Gamut) | P3 (0.941, 0.576, 0.263) | P3 (0.941, 0.592, 0.282) | Color(.displayP3, ...) |
| HSL / HSB | hsl(28, 100%, 58%) | hsl(28, 100%, 59%) | Color(hue:sat:bri:) |
| Platform Bridge | UIKit: UIColor.systemOrange | AppKit: NSColor.systemOrange | Color(uiColor:) / Color(nsColor:) |
Light Appearance
#FF8D28rgb(255, 141, 40)hsl(28, 100%, 58%)(r: 1.000, g: 0.553, b: 0.157)Dark Appearance
#FF9230rgb(255, 146, 48)hsl(28, 100%, 59%)(r: 1.000, g: 0.573, b: 0.188)Drop-In Developer Snippets
Ready-to-paste code blocks for Xcode asset catalogs and Swift files.
Contents.json inside Assets.xcassets/Orange.colorset/{
"colors": [
{
"color": {
"color-space": "srgb",
"components": {
"red": "1.000",
"green": "0.553",
"blue": "0.157",
"alpha": "1.000"
}
},
"idiom": "universal"
},
{
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
],
"color": {
"color-space": "srgb",
"components": {
"red": "1.000",
"green": "0.573",
"blue": "0.188",
"alpha": "1.000"
}
},
"idiom": "universal"
}
],
"info": {
"author": "xcode",
"version": 1
}
}Live UI Component Sandbox
Preview Color.orange inside standard Apple interface components.
●SwiftUI Notification
Just nowDemonstrates how Apple designers pair system background tints with dynamic Orange accents.
.foregroundStyle(.orange)
Platform Implementation Snippets
Ready-to-use Swift code for SwiftUI, UIKit, and AppKit applications.
// Standard SwiftUI Usage
Text("Hello, Apple")
.foregroundStyle(Color.orange)
// Background & Shape Fill
RoundedRectangle(cornerRadius: 16)
.fill(Color.orange)
.frame(width: 200, height: 50)
// Prominent Action Button
Button("Confirm Action") {
// Action
}
.buttonStyle(.borderedProminent)
.tint(Color.orange)WCAG 2.1 Accessibility Contrast Audit
Contrast calculations of Orange against pure white and iOS OLED dark surfaces.
Recommended HIG Use Cases
- Caution indicators and warning banners
- High-priority status chips and badges
- Starred items and secondary progress bars
Anti-Patterns to Avoid
- Thin body text on pure white without high contrast mode
- Subtle low-contrast borders
Browse More SwiftUI Colors
Quickly jump to other Apple system colors and semantic tokens.
Frequently Asked Questions
How do I use Color.orange in SwiftUI?
In SwiftUI, apply the color directly using view modifiers like .foregroundStyle(.orange), .tint(.orange), or .background(.orange). You can also instantiate it via Color.orange.
What is the HEX code for SwiftUI Orange in light and dark mode?
In light appearance, SwiftUI Orange resolves to #FF8D28. In dark appearance, it automatically adapts to #FF9230.
What is the UIKit and AppKit equivalent of SwiftUI Color.orange?
The UIKit equivalent is UIColor.systemOrange (accessible in SwiftUI via Color(uiColor: .systemOrange)). The AppKit equivalent is NSColor.systemOrange (accessible via Color(nsColor: .systemOrange)).
Does SwiftUI Color.orange adapt automatically to dark mode?
Yes, Color.orange is a dynamic Apple system token that automatically updates between light (#FF8D28) and dark (#FF9230) appearances when the system appearance changes.
What is the Display P3 and sRGB value of Color.orange?
Color.orange uses resolved sRGB values (#FF8D28 in light, #FF9230 in dark) and supports wide color gamut Display P3 coordinates for high-fidelity rendering on Apple Retina displays.