from typing import Tuple


def hex_to_rgb(value: str) -> Tuple[int, int, int]:
    """Turn a hex color code to RGB ints.

    Parameters
    ----------
    value : str, the Hex color code

    Returns
    -------
    Tuple[int, int, int], the RGB values
    """
    value = value.lstrip("#")
    lv = len(value) // 3
    rgb: Tuple[int, int, int] = (
        int(value[0:lv], 16),
        int(value[lv : 2 * lv], 16),
        int(value[2 * lv : 3 * lv], 16),
    )
    return rgb