If you see this, something is wrong
First published on Saturday, Feb 15, 2025 and last modified on Sunday, Feb 22, 2026 by François Chaplais.
Documents Live supports xcolor only for inline (aka paragraph mode) content.
Documents Live supports the following color models:
rgb
cmyk
hsb
gray
HTML
Documents Live supports the \definecolor command with the syntax
\definecolor{color name}{mode1/mode2/etc...}{value1/value2/etc...}In case of multiple modes and values, only the first pair is taken into consideration.
You can see an illustrative list of pre-defined colors here.
Documents Live supports the mixing syntax (as described in the xcolor package documentation)
C0!P1!C1!P2! . . .!Pn!CnWhen the last color is omitted, white is used as a substitute.
In what follows, color is a mix of defined colors as described above.
Documents Live supports the two following syntax usage for the command:
\command{parameters} with the content being one of the parameters
{\command{parameters}content} which is the scoped syntax
The following commands are supported. For each command we give the syntax for the first variant.
\color\color{color}{content}\textcolor\textcolor{color}{content}\colorbox\colorbox{background color}{content}\fcolorbox\fcolorbox{frame color}{background color}{content}
LaTeX2web supports the variant syntax for \color, \textcolor and \colorbox which defines the color directly within the command, following this syntax (given for \textcolor):
\textcolor[list of color models]{list of color values}{content}When the background color is modified, Documents Live uses a perceptual algorithm to decide whether the text color should be white or black. For details, see the discussion at Black or white text on a colour background? | mixable Blog.