There is also a module Color::Calc that supplies contrast, mix and blend functions.
In reply to Re: Contrasting Colours by tall_man in thread Contrasting Colours by msemtd