Learn R Programming

plotrix (version 3.8-2)

color.id: Identify closest match to a color

Description

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

Usage

color.id(col)

Value

the name of the closest match

Arguments

col

a color specified as a hex string

Author

Ben Bolker

Details

finds the color with the minimum squared distance in RGB space

See Also

Examples

Run this code
 color.id("#cc00cc")

Run the code above in your browser using DataLab