ColorMatcher it's a gem that given a color, returns the nearest one from a collection.
You should read the tests as they are the most updated documentation.
There's only one method:
ColorMatcher.closest_color("000000", ["000000", "ffffff"]) # => 000000
We use the color matcher at Chicisimo to match our looks with the color picked using the slider in our discover section:
We are using the Euclidean distance algorithm as described here.
ColorMatcher is open-sourced software licensed under the MIT license.