title: Convert CCT (Correlated Color Temperature) to x, y Chromaticities
body: <p>I'm trying to convert a CCT of 6504K into x, y chromaticities in 1931 2deg color space. Followed the equation on this <a href="https://en.wikipedia.org/wiki/Standard_illuminant" rel="nofollow noreferrer">Wikipedia page</a> under section <strong>COMPUTATION</strong> - doing this in Python 3.6.</p>
  
  <p>D65 (of 6504K) is specified as 0.31271, 0.32902 (see same  Wikipedia page further down)</p>
  
  <p>The resulting x, y coordinates that I get are: [0.31271405688264753, 0.329<strong>11</strong>90991371872]</p>
  
  <p>As you can see my x value is spot on, but the y value is off - and in the equation it is calculating y from x. I've checked this now 20 times and cannot find an error...</p>
  
  <p>Any idea why the y coordinate is incorrect ?</p>
  
  <p>Thanks.</p>