Colour constancy is typically measured with techniques involving asymmetric matching by adjustment, in which the observer views two scenes under different illuminants and adjusts the colour of a reference patch in one to match a test patch in the other.
Article Measurements of Colour Constancy by Using a Forced-Choice Ma...
The concept of color is a complex phenomenon! in physics, this is the magnitude of the spectral reflection at different spectral points, which are associated with the physical interpretation or characteristics of the device. If this is a device, then you need to know clearly what is the spectral composition of the illumination of the surface under study, what are the characteristics of the RGB matrix (or spectral channels) of the measuring chamber. Therefore, there is no obvious answer here, it is necessary to know and comply with many conditions.