Template:Color contrast conformance

From blackwiki
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)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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