LaTeX knows the following colors without any packages:
black | blue | brown | cyan |
darkgray | gray | green | lime |
magenta | olive | orange | pink |
purple | red | teal | violet |
white | yellow |
If you want other colors, you can define them with \usepackage{xcolor}
and \definecolor{name}{model}{color-spec}
where:
- name is the name of the color you want to define,
- model is the color space (gray, rgb, RGB, HTML, cmyk)
- color-spec is the definition of the color in the chosen model
For example:
\definecolor{orange}{HTML}{FF7F00}
\definecolor{orange}{rgb}{1,0.5,0}
\definecolor{orange}{RGB}{255,127,0}
\definecolor{orange}{cmyk}{0,0.5,1,0}
You can find suitable colors with a color picker
See also
- Wikibooks: LaTeX/Colors