from typing import Tuple


def get_rgb_from_hex(hex_str: str) -> Tuple[int, int, int]:
    """Get the rgb values from a hex string."""
    # Adopted from
    # https://stackoverflow.com/questions/29643352/converting-hex-to-rgb-value-in-python
    hx = hex_str.lstrip("#")
    return int(hx[0:2], 16), int(hx[2:4], 16), int(hx[4:6], 16)