For a given spectral power distribution, *P(λ)*, of an emissive source (e.g. a monitor), the XYZ tristimulus values are computed like this:

where , and are the CIE standard observer functions (either 2 degree or 10 degree, depending on the application). The integrals are computed over the visible spectrum (about 360 to 830 nm).

But in practice, the functions found in these integrals exist either from empirical experiment or by measurement. Therefore, there are not mathematical equations representing them. Instead, they exist as discrete samples and so the integrals are replaced by summations:

Here there are questions of the wavelength span that is used as well as the sample spacing. The standard observer functions are greater than zero over the span of 360 to 830 nm. The spectral power distribution span may be less than that, depending on the mesuring device used. The sample spacing is typically in the range of 1 to 20 nm. In order to perform the summations, the spans and spacings of the standard observer functions must match those of the spectral power distribution of the sample. Resampling, interpolation and possibly even extrapolation are used to accomplish this.

Cases involving reflective and transmissive samples have strong similarities to, and important differences from the emissive case
described above. The spectral power distribution of the sample, *P(λ)*,
is replaced by the spectral reflectance (or transmittance) of the sample, *S(λ)*
multiplied by the spectral power distribution of a reference illuminant *I(λ)*:

Why is a reference illuminant needed? If you consider the emissive case, where the color sample is viewed in a dark room, you can
see its color because it is generating the light. However, when viewing a reflective (or transmissive) sample in that same environment
you see nothing at all because such a sample does not generate light. The only way it can be seen is by first illuminating it. It is
obvious that the appearance of the sample color is influenced by the type of illumination it receives. In order to make the XYZ value
of a color sample unambiguous, the illuminant must be somehow identified and associated with it. This poses a problem since there are
infinitely many possible illuminants. So instead of using an actual illuminant, a *reference* illuminant is used instead. Common
reference illuminants are C, D50, D65 and others. The reference illuminant of an XYZ is simply made by reference. For example, "D50" refers
to an entire standard spectral power distribution.

Note that the emissive case above does not involve a reference illuminant since the sample itself provides the light energy.

Again, the integrals are usually replaced by summations for the same reasons as discussed for the emissive case:

The standard observer functions and many reference illuminants may be graphically viewed with the CIE Spectral Display Calculator.