powered by
Convert color names to hex RGB strings
col2hex(cname)
Character vector giving the hex color code translation of the provided color names.
Color name(s)
Gregory R. Warnes
col2rgb, colors, rgb
col2rgb
colors
rgb
col2hex(c("red","yellow","lightgrey"))
Run the code above in your browser using DataLab