foregroundTone

fun foregroundTone(bgTone: Double, ratio: Double): Double

Given a background tone, find a foreground tone, while ensuring they reach a contrast ratio that is as close to ratio as possible.