I'm using
\usepackage[dvipsnames]{xcolor}
to use RoyalPurple color, but now I wanted to redefine it to
\definecolor{light-RoyalPurple}{RoyalPurple}{0.85}
But I get
! Package xcolor Error: Undefined color
model `RoyalPurple'.
that doesn't happen with
\definecolor{light-gray}{gray}{0.85}
So I think that \definecolor just works with "normal" colors… how to solve it?
Best Answer
It's not working because you're giving the command an unexpected value. The second argument of
\definecolor
expects one of the color models from this list:That's why
gray
worked in your case. Try replacing that withblue
and you'll get the same error. If you want a lighter version ofRoyalPurple
, use\colorlet
.Output
Code