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.