function hexToHsv(hex) {
    return rgbToHsv(...hex.match(/.{2}/g).map(v => parseInt(v, 16)));
}
Convert HEX to HSV.
@param hex Hexadecimal string of rgb colors, can have length 3 or 6.
@return {number[]} HSV values.