• Parse a sRGBTuple from a CSS hex color string . Supports both #rgb and #rrggbb formatted strings.

    Parameters

    • hex: string

    Returns sRGBTuple