Search code examples
algorithmcolorsrgbhsl

HSL to RGB color conversion


I am looking for an algorithm to convert between HSL color to RGB.

It seems to me that HSL is not very widely used so I am not having much luck searching for a converter.


Solution

  • Found the easiest way, python to the rescue :D

    colorsys.hls_to_rgb(h, l, s)

    Convert the color from HLS coordinates to RGB coordinates.