from typing import Tuple


def hex_to_rgb(x: str) -> Tuple[float, ...]:
    """Converts a xexadecimal color code to r,g,b

    :param x: Hexadecimal color code
    :type x: str
    :return: R,G,B color code
    :rtype: Tuple

    """
    x = x[1:]
    return tuple(int(x[i : i + 2], 16) / 255 for i in (0, 2, 4))