Returns the contrast ratio as defined by WCAG 2.1. Values range from 1 (no contrast) to 21 (black on white). The minimum for non-text graphical elements at Level AA is 3.0:1.
Arguments
- colour1, colour2
Character colour strings (any format accepted by
grDevices::col2rgb()).