I have a self defined color:

\definecolor{my-blue}{cmyk}{0.80, 0.13, 0.14, 0.04, 1.00}

I want to use it for a tcolorbox environment:

\begin{tcolorbox}[colback = \color{my-blue}]

however I am just getting mostly unnamed errors (literally ''!'') and the occasional color protected...

  • As far as I know, cmyk wants four numbers, not five. – egreg Dec 3 '16 at 17:41
  • A fifth number can specify the alpha – SumNeuron Dec 3 '16 at 18:01

The value of the colback option is the name of the color, not the \color command.

\definecolor{my-blue}{cmyk}{0.80, 0.13, 0.14, 0.04, 1.00}
\begin{tcolorbox}[colback = my-blue]

enter image description here

| improve this answer | |
  • I tired just using my-blue but it gave errors, hence trying \color{my-blue} – SumNeuron Dec 3 '16 at 18:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.