# Are there colors in latex?

#### Amer

##### Active member
can we colored latex ?

#### Opalg

##### MHB Oldtimer
Staff member
Re: is there colors in latex

can we colored latex ?
${\color{red}1}\ {\color{blue}2}\ {\color{green}3}\ {\color{magenta}4}\ {\color{yellow}5}\ {\color{cyan}6}$

I don't know if any others are available through MathJax.

#### Amer

##### Active member
Re: is there colors in latex

${\color{red}1}\ {\color{blue}2}\ {\color{green}3}\ {\color{magenta}4}\ {\color{yellow}5}\ {\color{cyan}6}$

I don't know if any others are available through MathJax.
${\color{red}{Th}}\ {\color{blue}{an}}\ {\color{green}{ks}}$

#### Krizalid

##### Active member
Re: is there colors in latex

If you're trying to make a paper, then you can use in the preamble:

Code:
\definecolor{namethecolor}{rgb}{1,1,1}
Then change the 1s values to generate the color you want.

#### dwsmith

##### Well-known member
Re: is there colors in latex

If it is for a paper, \documentclass[dvipsnames]{what ever you want here}
\usepackage{xcolor}.

Now you can specify html colors and extend color names such as Cyan, Aquamarine, and a lot more. You will need to check out the documentation find out your options.

Warning:

The html color options may only work in LuaTex and XeTeX not 100% sure.

Last edited: