I wsa thinking about this some more and I think it would be better if this function took a single parameter called options.  Then if there are properties called red/green/blue/alpha, you use those values, if not, generate a random value.  Also, instead of the values being string, they should be numbers from 0 to 1.  Just like the constructor takes.