---
title: backgroundColor
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/textcomponent/backgroundcolor
---

# backgroundColor

The canvas’s background color.

## Declaration

```swift
var backgroundColor: CGColor?
```

## Discussion

Discussion Specify a color to have RealityKit render the entire canvas in a color. The specified value may include an alpha component. By default, the canvas is transparent.
