typecast color arguments, for css::writer