colour.notation.HEX_to_RGB

colour.notation.HEX_to_RGB(HEX)[source]

Converts from hexadecimal triplet representation to RGB colourspace.

Parameters:HEX (unicode or array_like) – Hexadecimal triplet representation.
Returns:RGB colourspace array.
Return type:ndarray

Notes

Notes

Range Scale - Reference Scale - 1
RGB [0, 1] [0, 1]

Examples

>>> HEX = '#aaddff'
>>> HEX_to_RGB(HEX)  # doctest: +ELLIPSIS
array([ 0.6666666...,  0.8666666...,  1.        ])