I'm doing a poster with the baposter which uses tikz and at some point realized that some colors that should be identical are not. It turns out that tikz apparently resorts to RGB color space as soon as there is a shading involved, whereas I'm doing the poster (a I intend to print it...) in CMYK (which is also the default in the baposter class).
Now my question is: How do I force tikz to use CMYK everywhere?
Here's a minimal example that demonstrates the problem:
\documentclass{minimal}
%%% uncomment to use CMYK
\usepackage[cmyk]{xcolor}
\definecolor{mygreen}{cmyk}{1,0,0.57,0.42}
%%% uncomment to use RGB
% \usepackage[rgb]{xcolor}
% \definecolor{mygreen}{HTML}{009440}
\usepackage{tikz}
\pdfcompresslevel=0
\begin{document}
\color{mygreen}{MY TEXT}
\tikz
\shade [left color=mygreen,right color=mygreen]
(1,1) rectangle (2,2);
%
\tikz
\fill [mygreen]
(1,1) rectangle (2,2);
\end{document}
The two boxes, which should have the same color, have not. The shaded box should have the same color as the solid box and the text.
(Note: this question is not so much about the baposter class, however, as baposter uses tikz the underlying problem leads to the fact that the frames of the boxes and the shadings in the header of the boxes have different colors.)


xcolor. – percusse Oct 07 '13 at 16:11