http://qs321.pair.com?node_id=261561

msemtd has asked for the wisdom of the Perl Monks concerning the following question:

Hi people,
I'm seeking a function that given a colour as an rgb tuple, will return one or more suitably contrasting colours. I did some work on this some years ago and gave up, lost in the maths for rgb, hsv, and hsl colourspace conversion. I'm assuming that by now there is a nice module to do this for me but I just can't find anything out there that works.
Thanks for your time!