A single average cannot describe every useful property of an optical spectrum. A coating can retain substantial radiant power while suppressing visually important wavelengths, or preserve luminance while shifting color. Start by specifying the quantity that the acceptance criterion is meant to control.
Choose what receives equal weight
For a throughput curve over , a uniform-in-wavelength mean is:
This gives equal weight to equal wavelength intervals. It is not generally the arithmetic mean of measured rows. Dense sampling in one band must not give that band extra weight simply because more measurements were taken there.
Photopic-only and source-weighted luminous means instead use:
The V-only result corresponds to an equal-energy spectral source over the integration band. It is not automatically the luminous result under daylight or a particular lamp. State the wavelength interval and source with every reported percentage.
Integrate irregular samples with interval widths
For ordered samples of an integrand , trapezoidal quadrature gives:
For example, throughput values sampled at wavelengths nm have an arithmetic row mean of . Their piecewise-linear integral is 150 nm, giving a wavelength mean of . Sampling density and interval width are different quantities.
Apply the rule separately to a weighted numerator and denominator on a compatible grid. Interpolation aligns data; it cannot recover narrow spectral features that were never measured. Even a uniform grid requires consistent endpoint treatment.
Carry XYZ into a reference-relative space
CIELAB expresses XYZ relative to a white reference computed using the same illuminant and observer:
Lightness is nonlinear in relative Y. The and coordinates describe opposing chromatic directions. Lab therefore does not preserve the additive spectral relationship used to calculate XYZ.
The CIELAB piecewise function
With :
The linear branch makes the transformation finite near zero and joins the cube-root branch continuously in value and slope. The sample and reference XYZ must use the same normalization. A perfect reference has ; zero XYZ gives .
For a spectrally neutral 40% sample with the same reference white, the common XYZ scale cancels in the ratios: and . By contrast, two selective samples can have the same wavelength-average throughput while returning different Lab coordinates. A scalar throughput specification and a color specification therefore answer different questions.
Compare colors with a named metric
CIE76 is Euclidean distance in Lab:
CIEDE2000, written , adjusts lightness, chroma, and hue contributions and includes a chroma–hue interaction. It is a different metric, not another way to compute the same numerical distance. Its standard parametric factors are commonly set to one; application-specific conditions may require an agreed alternative.
The structure of the CIEDE2000 calculation
Define the normalized lightness, chroma, and hue contributions using the CIEDE2000 corrections:
Then:
The primed differences, scale terms , and rotation term follow the full CIEDE2000 definition. They are not obtained by directly substituting and . In particular, hue wraps around a circle and becomes undefined at zero chroma, requiring explicit branch handling. The calculator implements those branches and uses .
There are two useful input routes to : compare compatible measured Lab coordinates, or calculate XYZ and Lab from each spectrum first. The latter preserves the ability to investigate source-dependent differences. Both routes require matching reference conditions; entering Lab alone cannot verify them.
A difference value is not a universal pass/fail decision. Geometry, texture, gloss, adaptation, measurement variation, and the task affect visibility and acceptability. Establish a tolerance using representative parts and controlled viewing, then confirm that the measurement can resolve that tolerance.