Skip to contents

Given a color specified as a hex string, find the closest match in the table of known (named) colors

Usage

color.id(col)

Arguments

col

a color specified as a hex string

Details

finds the color with the minimum squared distance in RGB space

Value

the name of the closest match

Author

Ben Bolker

See also

Examples

 color.id("#cc00cc")
#> [1] "magenta3"