toContentColor

fun Color.toContentColor(luminanceThreshold: Float = 0.5f): Color

Return

Color.Black or Color.White based on the luminance of the given Color.