# Difference between revisions of "Help:Color"

## Color

Equations can use color with the \color command. The default Texvc renderer and the MathJax renderers have different syntaxes to support both use {\color{Blue}{text}}. For example

There are several alternate notations styles

Some color names are predeclared according to the following table, you can use them directly for the rendering of formulas (or for declaring the intended color of the page background).

Note that color should not be used as the only way to identify something, because it will become meaningless on black-and-white media or for color-blind people. See Wikipedia:Manual of Style (accessibility)#Color.

Latex does not have a command for setting the background color. The most effective of setting a background color is by setting a CSS styling rules for a table cell

{| class="wikitable"
|-
| style="background: gray" | $\pagecolor{Gray}x^2$ || style="background: Goldenrod" | $\pagecolor{Goldenrod}y^3$
|}


Rendered as

The \pagecolor{Goldenrod} command is necessary for the Texvc renderer to use the correct anti-aliasing around the edges of the semi-transparent images.

Custom colours can be defined using

\definecolor{myorange}{RGB}{255,165,100}\color{myorange}e^{i \pi}\color{Black} + 1 = 0

${\displaystyle \definecolor {myorange}{rgb}{1,0.6470588235294118,0.39215686274509803}\color {myorange}e^{i\pi }\color {Black}+1=0}$