---
title: backgroundColor
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skscene/backgroundcolor
---

# backgroundColor

The background color of the scene.

## Declaration

```swift
var backgroundColor: UIColor { get set }
```

```swift
var backgroundColor: NSColor { get set }
```

## Mentioned in

Creating a Scene with a Transparent Background

## Discussion

Discussion The default value is a gray color (RGBA 0.15, 0.15, 0.15, 1.0).

## See Also

### Setting the Background Appearance

- [Creating a Scene with a Transparent Background](spritekit/creating-a-scene-with-a-transparent-background.md)
- [view](spritekit/skscene/view.md)
