The Color class implements a color object. It can be used to convert colors between different color spaces, and to perform various color operations.
Color
See Color.js documentation.
let c1 = new Color("#ff0011") c1.to("hsl")