update: this repo is now obsolete since this functionality was long ago merged in treeform/chroma. I will archive this. also note that color proximity test has been indeed removed
This repo implements the ciede2000 color distance function. It is based on [Sharma et al 2004], which also provides test vectors.
One idea would be to use this to find what could be a valid color for a language in github/linguist, given the color proximity test.
Color proximity test in linguist is based on color-proximity ruby gem which is based on color_difference gem implementing color distance. Note that the color distance implemented in ruby scales the distance in the [0, 1] range by dividing the CIEDE2000 distance by 100 and clipping values to 100. Also note that color proximity test in linguist might actually be removed in the future.