---
title: backgroundColor
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspathcontrol/backgroundcolor
---

# backgroundColor

The receiver’s background color.

## Declaration

```swift
@NSCopying var backgroundColor: NSColor? { get set }
```

## Discussion

Discussion By default, the background is set to a light blue color for NSPathStyleStandard and nil for the other styles. You can use [NSColor clearColor] to make the background transparent.
