code: public static int fromHSL(float h, float s, float l, int a) {
          int r, g, b;
  
          if (s == 0) {
              r = g = b = (int) (l * MAX);
          } else {
              float v1, v2;
              float hue = h / 360f;
  
              v2 = (l < 0.5) ? (l * (1 + s)) : ((l + s) - (l * s));
              v1 = 2 * l - v2;
  
              r = (int) (MAX * HueToRGB(v1, v2, hue + (1.0f / 3)));
              g = (int) (MAX * HueToRGB(v1, v2, hue));
              b = (int) (MAX * HueToRGB(v1, v2, hue - (1.0f / 3)));
          }
  
          return getARGB(r, g, b, a);
      }
docs: Method to transform from HSL to ARGB
  <p>
  Source from: https://www.programmingalgorithms.com/algorithm/hsl-to-rgb?lang=C%2B%2B
  
  @param h - hue
  @param s - saturation
  @param l - lightness
  @param a - alpha
  @return rgb