Skip to main content

contrast_ratio

Function contrast_ratio 

Source
pub fn contrast_ratio(foreground: &str, background: &str) -> Option<f64>
Expand description

WCAG relative contrast for opaque #RRGGBB colours.