code: def hex_to_rgb(hex_value):
      
      hex_digits = normalize_hex(hex_value)
      return tuple([int(s, 16) for s in (hex_digits[1:3], hex_digits[3:5], hex_digits[5:7])])
docs: Convert a hexadecimal color value to a 3-tuple of integers
      suitable for use in an ``rgb()`` triplet specifying that color.
  
      The hexadecimal value will be normalized before being converted.
  
      Examples:
  
      >>> hex_to_rgb('#fff')
      (255, 255, 255)
      >>> hex_to_rgb('#000080')
      (0, 0, 128)