I have a color hex string, e.g. ecd9ed, I know I can define it as below:
\definecolor{color1bg}{RGB}{236,217,237}
But I wish to skip the conversion from hex to decimal. Is it possible to define a color in hex string? Maybe something like below:
\definecolor{color1bg}{RGB}{#ecd9ed}
Best Answer
\definecolor{color1bg}{HTML}{ECD9ED}
is the way to define colors with HTML definition.You need the package
xcolor
of course.