---
title: accentColor
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/color/accentcolor
---

# accentColor

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

## Declaration

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

## Discussion

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 view using the app’s accent color: Text("Accent Color")     .foregroundStyle(Color.accentColor)

## See Also

### Getting semantic colors

- [primary](swiftui/color/primary.md)
- [secondary](swiftui/color/secondary.md)
