Jump to content

Template:Greater color contrast ratio

Checked
From pool

">Navy</span>Navy

  • <span style="
    Greater color contrast ratio

">Navy</span>Navy

  • <span style="background:red; color:
    Greater color contrast ratio

">Red</span>Red

  • <span style="
    Greater color contrast ratio

">Red</span>Red

  • <span style="
    Greater color contrast ratio

">Red</span>Red

  • <span style="background:white; color:
    Greater color contrast ratio

">White</span>White

  • <span style="
    Greater color contrast ratio

">White</span>White

  • <span style="background:black; color:
    Greater color contrast ratio

">Black</span>Black

  • <span style="
    Greater color contrast ratio

">Black</span>Black

  • <span style="background:#005500; color:
    Greater color contrast ratio

">#005500</span>#005500

  • <span style="
    Greater color contrast ratio

">#005500</span>#005500

  • <span style="background:#005500; color:#
    Greater color contrast ratio

">005500</span>005500

  • <span style="
    Greater color contrast ratio

">005500</span>005500

  • <span style="background:#CC5500; color:#
    Greater color contrast ratio

">CC5500</span>CC5500

  • <span style="
    Greater color contrast ratio

">CC5500</span>CC5500

  • <span style="background:#CC5500; color:#
    Greater color contrast ratio

">CC5500</span>CC5500

  • <span style="
    Greater color contrast ratio

">CC5500</span>CC5500

  • <span style="background:Not a color; color:#
    Greater color contrast ratio

">Not a color</span>Not a color

  • <span style="
    Greater color contrast ratio

">Not a color</span>Not a color

Optional parameters

The bias parameter should be used with caution to ensure accessibility. As stated above, when used without a bias, and with color2 and color3 equal to white and black, the selected color pair will always have a contrast ratio greater than 4.58. A bias of 1.25, reduces the possible minimum to 4.0, which may not meet accessibility standards.

See also

For more detail see wikipedia wikipedia:Template:Greater color contrast ratio

This content is in the Template Namespace. Used for page-templates that can be re-used across the wiki.