The top open-source alternatives to ColorTag
are Rickrack and Color Thief.
One of the criteria for ordering this list is the number of mentions that products have on reliable external sources.
You can suggest additional sources through the form here.