colour.HCL_to_RGB#

colour.HCL_to_RGB(HCL: Domain1, gamma: float = 3, Y_0: float = 100) Range1[source]#

Convert from HCL colourspace to RGB colourspace according to Sarifuddin and Missaoui (2005) method.

Parameters:
  • HCL (Domain1) – HCL colourspace array.

  • gamma (float) – Non-linear lightness exponent matching Lightness \(L^*\).

  • Y_0 (float) – White reference luminance \(Y_0\).

Returns:

RGB colourspace array.

Return type:

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

HCL

1

1

Range

Scale - Reference

Scale - 1

RGB

1

1

  • This implementation uses the equations specified in [SM05b] with the corrections from [Sar21].

References

[SM05a], [SM05b], [Wikipedia15]

Examples

>>> HCL = np.array([-0.03167854, 0.28417150, 0.22859647])
>>> HCL_to_RGB(HCL)
array([ 0.4562033...,  0.0308104...,  0.0409192...])