---
id: "P:cAlgo.API.ChartColorSettings.BackgroundColor"
kind: "property"
type: "T:cAlgo.API.ChartColorSettings"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/ChartColorSettings/BackgroundColor/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# ChartColorSettings.BackgroundColor

Member of [ChartColorSettings](https://help.ctrader.com/ctrader-algo/references/Chart/ChartColorSettings/index.md).

## BackgroundColor

Gets or sets the color of the chart background.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
Color BackgroundColor {get; set;}
```

Python:

```python
chartColorSettings.BackgroundColor: Color
```

### Returns

`Color` — 

### Examples

C#:

```csharp
Chart.ColorSettings.BackgroundColor = Color.FromHex("#FF101820");
Print("Chart background color: {0}", Chart.ColorSettings.BackgroundColor);
```

Python:

```python
api.Chart.ColorSettings.BackgroundColor = Color.FromHex("#FF101820")
api.Print(f"Chart background color: {api.Chart.ColorSettings.BackgroundColor}")
```

