<h2 id="calculatecontentcolor-backgroundcolor">calculateContentColor</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public fun calculateContentColor(backgroundColor: Color): Color
```

Calculates the preferred content color for `backgroundColor`. This will return either
`Color.White` or `Color.Black`, depending on the luminance of the background color.