• Converts a hexadecimal RGB color to an HSB color.

    Example

    hexToHsb(0.2392, 0.2902, 0.4706) // return { h: 226.78, s: 0.4917, b: 0.4706 }
    

    Parameters

    • rgb: [number, number, number]

      Color components as fractions.

    Returns HSB

Generated using TypeDoc