Identify closest match to a color
Given a color specified as a hex string, find the closest match in the table of known (named) colors
color.id(col)
col |
a color specified as a hex string |
finds the color with the minimum squared distance in RGB space
the name of the closest match
Ben Bolker
color.id("#cc00cc")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.