ANSI and EnergyStar recommend Duv values between -0.006 and +0.006. For more demanding applications, a Duv range between -0.003 and +0.003 is preferred.
CIE 1931 xy to Duv
The formula below converts CIE 1931 xy values into its Duv value.
u = (4*x) / (-2*x + 12*y + 3);
v = (6*y) / (-2*x + 12*y + 3);