LaTex2Web logo

Documents Live, a web authoring and publishing system

If you see this, something is wrong

Table of contents

First published on Saturday, Feb 15, 2025 and last modified on Sunday, Feb 22, 2026 by François Chaplais.

xcolor

François Chaplais

1 Colors models

2 Color definition

\definecolor{color name}{mode1/mode2/etc...}{value1/value2/etc...}

3 Pre-defined colors

4 Color mixing

C0!P1!C1!P2! . . .!Pn!Cn

5 Commands

\color{color}{content}
\textcolor{color}{content}
\colorbox{background color}{content}
\fcolorbox{frame color}{background color}{content}
\textcolor[list of color models]{list of color values}{content}

6 Automatic text color selection