Template:Color contrast ratio

Returns the W3C contrast ratio of param 2 (typically a background color) to param 1 (typically a foreground color).