code: def _hex_to_rgb(color: str) -> Tuple[int, ...]:
          
          if color.startswith('#'):
              color = color.lstrip('#')
          return tuple(int(color[i:i + 2], 16) for i in (0, 2, 4))
docs: Convert hex color to RGB format.
  
          :param color: Hex color.
          :return: RGB tuple.