Template:InverseColor
From Zelda Wiki, the Zelda encyclopedia
Purpose
This template takes a color and gives its inverse, i.e. complimentary, color. This is the color that will contrast the most with the given color. Basic examples of such color pairs are black and white, blue and yellow, red and cyan, or green and magenta. Basically, if finds what color, when added to the given color, will give white (FFFFFF or FFF).
Usage
To use this template, type: {{InverseColor| Color }}
- Color — Hexadecimal code, either 6-digit or 3-digit, of the color.
If the resulting color can be simplified to a 3-digit hexadecimal code, the template will automatically do so.
Examples
- FFF — 000
- 00F — FF0
- F00 — 0FF
- 0F0 — F0F
- DCD0FF — 232F00
- FFD700 — 0028FF
- B7410E — 48BEF1
- 1E90FF — E16F00