In the following MCE, a tcolorbox is equipped with two rectangles drawn as overlays. The color of these rectangles is supposed to be the same as the bottom color of the tcolorbox.
It works well with the color e.g. blue but not with cyan: why?
\documentclass{article}
\usepackage{tcolorbox}
\tcbuselibrary{skins}
\NewTColorBox{mybox}{ !O{blue} }
{
enhanced,
height=.75in,
size=minimal,
interior style={
top color=black,
bottom color=#1
},
overlay={
\fill[#1]
(frame.south west) rectangle +( .5in,-5)
(frame.south east) rectangle +(-.5in,-5);
}
}
\begin{document}
\begin{mybox}
\end{mybox}
\vspace*{5cm}
\begin{mybox}[cyan]
\end{mybox}
\end{document}


\usepackage[rgb]{xcolor}before loading thetcolorboxpackage. – Jasper Habicht Mar 29 '23 at 10:27