APN The Colors package implements commands for manipulating and converting color values (Tk names, RGB, HSL). Not sure of the original source but a copy is available from [L1 ].
Also possibly useful are utility routines from Jeff Hobbs for contrast, shading etc. Now available from [L2 ].