# selectionColor

> Background color of selected text.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

> **Warning:**
>
> **Deprecated.** cursorColor is deprecated. Please use the corresponding USS property (--unity-cursor-color) instead.

```csharp
public Color selectionColor { get; }
```
