Skip to contents

Convert color to hexadecimal

Usage

col2hex(x, alpha = FALSE)

Arguments

x

name of color

alpha

get transparent color

Value

hex color

Examples

col2hex('red')
#>       red 
#> "#FF0000"