Template:Color contrast conformance
Revision as of 07:13, 15 March 2013 by imported>Wikid77 (created, as a utility template, to offer judgment about visibility contrast of 2 colors, as names and/or RGB #numbers)
Contrast: blue & orange, visible = no
50px Template documentation
The Template:Color_contrast_visible gives a yes/no judgment as to the acceptability of two colors together, in terms of contrast ratio, where the colors can be either RGB #numbers (#56F3BB) or color names (green, darkorange, or NavahoWhite, etc.).
- Usage: {{Color_contrast_visible|blue|white}}Template:J
- {{Color_contrast_visible|red|#FFcc00}} Template:J
- {{Color_contrast_visible |black|White|show=no}} Template:J
Either parameter 1 or 2 can be a standard color name (in upper/lowercase letters) or an RGB #number, such as: #FF45BB. See: Web colors, for a full list of color names and the assigned RGB #number values. The option "show=no" will suppress showing the color names or numbers, and give just the "yes" or "no" answer.
- See also
- {{color contrast ratio}}, gives ratio number
- {{ColorToLum}}, gives luminance value of a color
| The above documentation is transcluded from Template:Color contrast conformance/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |