colour.conversions

Conversion functions of the form x2y (e.g. rgb2hex).

Functions

hex2hsl(x)

Convert color from hex to hsl.

hex2rgb(str_rgb)

Transform hex RGB representation to RGB tuple.

hex2web(hex_color)

Convert HEX representation to WEB.

hsl2hex(x)

Convert color from hsl to hex.

hsl2rgb(hsl)

Convert HSL representation towards RGB.

hsl2web(x)

Convert color from hsl to web.

rgb2hex(rgb[, force_long])

Transform RGB tuple to hex RGB representation.

rgb2hsl(rgb)

Convert RGB representation towards HSL.

rgb2web(x)

Convert color from rgb to web.

web2hex(web[, force_long])

Convert WEB representation to HEX.

web2hsl(x)

Convert color from web to hsl.

web2rgb(x)

Convert color from web to rgb.