This module is used primarily by
It is also used for tracking within
and for documentation in
The formulas used are stated in WCAG 2.x specifications. WCAG is the main guideline for creating accessible interfaces on the web.
To use this module, you may use one of the above listed templates or invoke the module directly
<nowiki>{{ColorToLum|color}}</nowiki>
or <nowiki>{{#invoke:Color contrast|lum|color}}</nowiki>
<nowiki>{{Color contrast ratio|color1|color2|error=?}}</nowiki>
or <nowiki>{{#invoke:Color contrast|ratio|color1|color2|error=?}}</nowiki>
<nowiki>{{Greater color contrast ratio|color1|color2a|color2b}}</nowiki>
or <nowiki>{{#invoke:Color contrast|greatercontrast|color1|color2a|color2b}}</nowiki>
<nowiki>{{#invoke:Color contrast|styleratio|css style statement string|default background color|default text color}}</nowiki>