code: def example_rgb_to_xyz():
      
  
      print("=== RGB Example: RGB->XYZ ===")
      # Instantiate an Lab color object with the given values.
      rgb = sRGBColor(120, 130, 140)
      # Show a string representation.
      print(rgb)
      # Convert RGB to XYZ using a D50 illuminant.
      xyz = convert_color(rgb, XYZColor, target_illuminant='D50')
      print(xyz)
      print("=== End Example ===\n")
docs: The reverse is similar.