Colors
We can define colors by using \definecolor
.
\usepackage{xcolor}
\definecolor{NAME}{HTML}{VALUE} % (1)!
NAME
defines the macro name, it will be replaced with theVALUE
(a 6 digithex
number). TheHTML
just defines the format for the values.
Example
\documentclass{article}
\usepackage{xcolor}
\definecolor{test}{HTML}{444400}
\begin{document}
\colorbox{test}{Hello world} % First parameter is a color
\end{document}