# backgroundColor

> Global tinting color for all background elements rendered by the GUI.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.IMGUIModule

```csharp
public static Color backgroundColor { get; set; }
```

### Remarks

This gets multiplied by [GUI.color](/engine/6000.0/script-reference/unityengine/gui/color.md).

Additional Resources: [GUI.contentColor](/engine/6000.0/script-reference/unityengine/gui/contentcolor.md), [GUI.color](/engine/6000.0/script-reference/unityengine/gui/color.md).

![GUIBackgroundColor (backgroundColor)](/api/media?file=/engine/6000.0/media/images/GUIBackgroundColor.png)

*Yellow Background color applied to a button.*

### Examples

```csharp
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour
{
    void OnGUI()
    {
        GUI.backgroundColor = Color.yellow;
        GUI.Button(new Rect(10, 10, 70, 30), "A button");
    }
}
```
