
Last chance! 50% off unlimited learning
Sale ends in
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
# NOT RUN {
color.id("#cc00cc")
# }
Run the code above in your browser using DataLab