colour.RGB_to_HSL#

colour.RGB_to_HSL(RGB: ArrayLike) numpy.ndarray[source]#

Convert from RGB colourspace to HSL colourspace.

Parameters

RGB (ArrayLike) – RGB colourspace array.

Returns

HSL array.

Return type

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

RGB

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

HSL

[0, 1]

[0, 1]

References

[EasyRGBg], [Smi78], [Wikipedia03g]

Examples

>>> RGB = np.array([0.45620519, 0.03081071, 0.04091952])
>>> RGB_to_HSL(RGB)  
array([ 0.9960394...,  0.8734714...,  0.2435079...])