---
title: backgroundColor
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avmutablevideocompositioninstruction/backgroundcolor
---

# backgroundColor

The background color of the composition.

## Declaration

```swift
var backgroundColor: CGColor? { get set }
```

## Discussion

Discussion Only solid BGRA colors are supported; patterns and other supported colors are ignored. If the rendered pixel buffer does not have alpha, the alpha value of the background color is ignored. If the background color is NULL, the video compositor uses a default background color of opaque black.

## See Also

### Configuring the instructions

- [layerInstructions](avfoundation/avmutablevideocompositioninstruction/layerinstructions.md)
- [timeRange](avfoundation/avmutablevideocompositioninstruction/timerange.md)
- [enablePostProcessing](avfoundation/avmutablevideocompositioninstruction/enablepostprocessing.md)
