[android-components](../../index.md) / [mozilla.components.support.utils](../index.md) / [ColorUtils](./index.md)

# ColorUtils

`object ColorUtils` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/utils/src/main/java/mozilla/components/support/utils/ColorUtils.kt#L10)

### Functions

| Name | Summary |
|---|---|
| [getReadableTextColor](get-readable-text-color.md) | `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)<br>Get text color (white or black) that is readable on top of the provided background color. |
| [isDark](is-dark.md) | `fun isDark(color: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>Returns true if the color is dark enough that white text should be used on top of it. |
