[android-components](../../index.md) / [mozilla.components.support.utils](../index.md) / [ColorUtils](index.md) / [getReadableTextColor](./get-readable-text-color.md)

# getReadableTextColor

`@JvmStatic fun getReadableTextColor(backgroundColor: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/utils/src/main/java/mozilla/components/support/utils/ColorUtils.kt#L17)

Get text color (white or black) that is readable on top of the provided background color.

