by Bruce J. Lindbloom
Note: I was notified by Dr. János Schanda and Todd Newman on 3 April 2003 that the CIE 15.316 and the CIE Standard on CIELAB will implement this fix (i.e. using rational rather than decimal values for these constants).
The CIE equation for mapping relative luminance (Y/Yn) into lightness (L*) is composed of two separate functions, f ( ) and g ( ):
The two functions are "grafted" together at , which I will call the junction point. The two constants, and , are given by the CIE standards [Supplement No. 2 to CIE Publication No. 15 (E-1.3.1) 1971 / (TC-1.3) 1978] as:
Substitution of these values into equations  and  shows that there is a discontinuity at the junction point:
This break may be seen by taking a closeup view of the junction point of the two functions. In the following animation, f ( ) is drawn in blue and g ( ) is drawn in red. As we zoom into the junction point, the discontinuity becomes apparent:
As may be seen, not only is the function discontinuous, it is also non-monotonic, which makes it not invertable in this region. What about the slopes at the junction point? We may compare them by taking the first derivatives of equations  and :
Again making the substitution shows that the slopes are also mismatched at the junction point:
If we wish to find modified constants and that provide both function and slope continuity, we must match the functions and their first derivatives at the junction point:
which using equations  through  becomes
Solving for the constants and shows that their values may be exactly represented as rational numbers:
Using these values in place of the published CIE values gives perfect function and slope continuity at the junction point:
The CIE's decision to represent these constants as decimal values was an unnecessary approximation that introduces both function and slope discontinuities.
If you examine the CIE equations for conversions between XYZ and Lab, you will find the constant 7.787. By extending the above analysis into these equations, you will find the exact value of this constant to be the rational number ( / 116).
By using the above values for and you will fix function discontinuities, non-monotonicities, inversion failures and slope discontinuities that are present in the published CIE conversions among XYZ, Lab, LCHab, Luv and LCHuv.