Mobile
iOS Swift Colors
UIKit UIColor and SwiftUI Color from HEX, sRGB, or asset catalogs. Asset colors support light/dark and wide-gamut P3. Spec reference: Documentation.
Starter template
// UIKit
let brand500 = UIColor(red: 124/255, green: 58/255, blue: 237/255, alpha: 1)
// SwiftUI asset
Color("Brand500")Color samples
FAQ
UIColor vs SwiftUI Color?
UIKit flows use UIColor. SwiftUI views use Color or asset-catalog names. Asset catalogs are best for light/dark and Display P3.
Why use asset catalogs instead of inline HEX?
Catalogs bundle light/dark variants and wide-gamut colors without conditional code in every view.
Can I copy the syntax chips?
Yes — click the secondary chip to copy platform syntax. HEX and RGB chips copy sRGB values for mockups, design handoff, and ChromaXP tools.
Are RGB and CMYK print-ready?
RGB and CMYK here are computed from HEX for quick reference. For ink and paper, re-check against your print profile or Pantone bridge.