Appearance
function getContrastRatio(a, b): number;
Computes the WCAG contrast ratio between two hex colors.
a
string
b
number
getContrastRatio('#ffffff', '#000000') // => 21
1.0.0