ratio

fun ratio(foregroundRgb: Int, backgroundRgb: Int): Double(source)

Contrast ratio between two colors, from 1.0 to 21.0.