---
title: "TextSelectionColors"
description: "Represents the colors used for text selection by text and text field components.

See [LocalTextSelectionColors] to provide new values for this throughout the hierarchy."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
class TextSelectionColors(val handleColor: Color, val backgroundColor: Color)
```


Represents the colors used for text selection by text and text field components.

See `LocalTextSelectionColors` to provide new values for this throughout the hierarchy.



