I have written some code to produce a tikzpicture with a lavender color that I later want to add some text to.
\documentclass[12pt]{book}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}
\usepackage{xcolor}
\begin{document}
\thispagestyle{empty}
\begin{tikzpicture}[pencildraw/.style={ %
decorate,
decoration={random steps,segment length=2pt,amplitude=1pt}
} %
]
\node[
preaction={fill=black,opacity=.5,transform canvas={xshift=1mm,yshift=-1mm}},
pencildraw,draw,fill=lavender!35,text width=0.89\textwidth,inner sep=5mm,align=justify]
{\fontsize{14}{18}\selectfont {\bf ``.'' \vskip 1pt \hfill \emph{---}}};
\end{tikzpicture}
\end{document}
which produces the error messages:
But, (surprise! surprise!), the box with the color I am trying to produce:
QUESTION: How can this be? The error messages indicate that Latex does not know the color I am asking for---yet it produces the color I want. Is there a way I can determine what the RGB or CYMK numbers are for the displayed picture? Such tikizpictures will be part of a larger document and I prefer not to run the code with error messages even though it is producing what I want.
THANK YOU.
Incidentally, the same thing happens if I use the color package instead of the xcolor package. And, if I ask the fill color to be lavender instead of lavender!35---I get a black for a color.



black!35). Btw, off topic, but\bfis deprecated since more than 20 years... – Rmano Feb 23 '21 at 21:10lavenderthere – Rmano Feb 23 '21 at 21:15xcolorby the way, so the\usepackage{xcolor}is actually redundant.) – Torbjørn T. Feb 23 '21 at 21:17Lavendercolor if you pass the optionsvgnamesto xcolor (notice the uppercase L). I do not know howtikzcalls it, so maybe you need a\PassOptionToPackage{svgnames}{xcolor}before loading tikz (can't check now), see https://tex.stackexchange.com/questions/51488/option-clash-with-xcolor-and-tikz. https://tex.stackexchange.com/questions/296500/undefined-color-under-tikz-code – Rmano Feb 23 '21 at 21:23