def _hex_to_rgb(hex_value):
    """
    Convert a hexadecimal color value to a 3-tuple of integers
    suitable for use in an ``rgb()`` triplet specifying that color.
    """
    int_value = int(hex_value[1:], 16)
    return int_value >> 16, int_value >> 8 & 255, int_value & 255
