rgb_to_hex

lib.image.rgb_to_hex(rgb)

Convert an RGB tuple to it’s hex counterpart.

Parameters:

rgb (tuple) – The (R, G, B) integer values to convert (e.g. (0, 255, 255))

Returns:

The 6 digit hex code with leading # applied

Return type:

str