pub fn contrast(a: Color, b: Color) -> f32
The WCAG contrast ratio between two colours, from 1 to 21.