Skip to contents

Return best color name of an hex color from the colornames API <https://colornames.org/download/>. If no color name exists, it returns NULL`. You can give a color name and vote for best color names at: <https://colornames.org/color/YOUR-HEX-CODE>.

Usage

get_color_colornames(hex, return_name_only = TRUE)

Arguments

hex

Hex color code

return_name_only

if FALSE returns color name only

Value

A character string.

Examples

if (FALSE) {
get_color_colornames(hex = "#0047AB")
}