mkt.databases.app.utils.convert_color_to_hex

mkt.databases.app.utils.convert_color_to_hex(color: str) str[source]

Convert named color to hex.

Parameters:

color (str) – Color name or hex string.

Returns:

Hex color string.

Return type:

str