[Tex/LaTex] How does LaTeX specify colors

colortcolorbox

How does LaTeX specify colors? For example, take the following excerpt from p. 28 of the tcolorbox package's user manual.

tcolorbox color specs

What does red!75!black mean?

I would appreciate the most general answer, for instance, I believe I've seen somewhere in the manual a color specification consisting of four parts (as opposed to three parts used in the example above), so I would appreciate it if the answer covered that case too as well as any other case that may arise.

If the color specifications are described in the manual or somewhere else, a simple page number or hyperlink is fine by me.

Best Answer

A general answer to your question would be to study the xcolor documentation. The package allows for all sorts of colour mixing.

Specific to your inquiry, read the introductory section 1.1 Purpose of this package (p 4):

How does a mixture of 40% green and 60% yellow look like?

\color{green!40!yellow}

As such, red!75!black would be 75% red and 25% black. A darker red colour.

Related Question