<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Color/accentColor",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI5ColorV06accentC0ACvpZ"
  },
  "title" : "accentColor"
}
-->

# accentColor

A color that reflects the accent color of the system or app.

```
static var accentColor: Color { get }
```

## Discussion

The accent color is a broad theme color applied to
views and controls. You can set it at the application level by specifying
an accent color in your app’s asset catalog.

> Note: In macOS, SwiftUI applies customization of the accent color
> only if the user chooses Multicolor under General > Accent color
> in System Preferences.

The following code renders a [`Text`](/documentation/SwiftUI/Text) view using the app’s accent color:

```
Text("Accent Color")
    .foregroundStyle(Color.accentColor)
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)