rgb_to_hex

static ColorCode.rgb_to_hex(rgb_tuple: tuple[float, ...]) str[source]

Convert rgb value tuple to hex code.

Parameters:

rgb_tuple (tuple[float, ...]) – Tuple rgb or rgba values

Returns:

Hex code representing the same color as rgb_tuple.

Return type:

str