So your bottom lines is simply using the array from HSL and converting into RGB. So your first array is hue, second saturation and 3rd lightness.
Hope this helps. Just remember if you are going to use a slider to control these, to divide them by the maximum value these elements that they can go up to and you’ll be able to adjust these using sliders.
c = effect(“Color Control”)(“Color”)
lite = .25; // lightness factor
sat = 1; // Saturation factor
hue = .25; // hue factor
hsl = rgbToHsl(c);
hslToRgb([hsl[0]*hue,hsl[1]*sat,hsl[2]*lite,hsl[3]])