---
title: "LocalAutofillHighlightColor"
description: "CompositionLocal used to change the [autofillHighlightColor] used by components in the hierarchy."
type: "property"
---

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


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

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


> **Deprecated** Use LocalAutofillHighlightBrush instead. To provide a solid color, use SolidColor(yourColor).

```kotlin
val LocalAutofillHighlightColor = compositionLocalOf { autofillHighlightColor() }
```


CompositionLocal used to change the `autofillHighlightColor` used by components in the hierarchy.



