xyY to XYZ

Given an xyY color whose Y component is in the nominal range [0.0, 1.0]:

Equation 1

Implementation Notes:

  1. Watch out for the case where y = 0. In that case, you may want to set X = Y = Z = 0.
  2. The output XYZ values are in the nominal range [0.0, 1.0].