Improve validation of color arguments