code: def xyY_to_XYZ(cobj, *args, **kwargs):
      
      # avoid division by zero
      if cobj.xyy_y == 0.0:
          xyz_x = 0.0
          xyz_y = 0.0
          xyz_z = 0.0
      else:
          xyz_x = (cobj.xyy_x * cobj.xyy_Y) / cobj.xyy_y
          xyz_y = cobj.xyy_Y
          xyz_z = ((1.0 - cobj.xyy_x - cobj.xyy_y) * xyz_y) / cobj.xyy_y
  
      return XYZColor(
          xyz_x, xyz_y, xyz_z, illuminant=cobj.illuminant, observer=cobj.observer)
docs: Convert from xyY to XYZ.