A color camera does not know what white is. Each channel reports the light its pixels collected, multiplied by a gain. Under a halogen lamp at about 3,200 K, blank glass might read, for example, R 230, G 180, B 105 with all gains at 1.0. White balance sets the gains so that the same glass reads equal values in all three channels: here about ×1.00, ×1.28 and ×2.19, scaled so the brightest channel stays below clippingLoading....
The reference has to be blank glass, imaged through the same objective, condenser setting, filters, lamp voltage and exposure you will acquire with. Whatever is in view becomes the definition of neutral. Balance on tissue and the camera makes that tissue gray, shifting every other color to compensate.