Colors.ColorToHsl() shared Converts RGB to HSL. Returns number The hue. number The saturation. number The lightness. Examples Colors.ColorToHsl – Converts RGB to HSL.