The Colors package implements commands for manipulating and converting color values (Tk names, RGB, HSV). Not sure of the original source but a copy is available from [https://sourceforge.net/p/irrational-numbers/code/HEAD/tree/pkgs/Colors/trunk/colors.tcl].