Template:InverseColor

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:

If the resulting color can be simplified to a 3-digit hexadecimal code, the template will automatically do so.

Examples

 * FFF —
 * 00F —
 * F00 —
 * 0F0 —
 * DCD0FF —
 * FFD700 —
 * B7410E —
 * 1E90FF —