Skip to content

Commit 4723906

Browse files
committed
Also for #2492
1 parent f041ba2 commit 4723906

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

css-color-4/conversions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function XYZ_to_Lab(XYZ) {
190190
// from CIE standard, which now defines these as a rational fraction
191191
var ε = 216/24389; // 6^3/29^3
192192
var κ = 24389/27; // 29^3/3^3
193-
var white = [0.9642, 1.0000, 0.8249]; // D50 reference white
193+
var white = [[0.96422, 1.00000, 0.82521]; // D50 reference white
194194

195195
// compute xyz, which is XYZ scaled relative to reference white
196196
var xyz = XYZ.map((value, i) => value / white[i]);
@@ -210,7 +210,7 @@ function Lab_to_XYZ(Lab) {
210210
// http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
211211
var κ = 24389/27; // 29^3/3^3
212212
var ε = 216/24389; // 6^3/29^3
213-
var white = [0.9642, 1.0000, 0.8249]; // D50 reference white
213+
var white = [[0.96422, 1.00000, 0.82521]; // D50 reference white
214214
var f = [];
215215

216216
// compute f, starting with the luminance-related term

0 commit comments

Comments
 (0)