powered by
Given a color specified as a hex string, find the closest match in the table of known (named) colors
color.id(col)
a color specified as a hex string
the name of the closest match
finds the color with the minimum squared distance in RGB space
col2rgb,colors
# NOT RUN { color.id("#cc00cc") # }
Run the code above in your browser using DataLab