The one I used in chemistry class long ago was just a RGB LED and solar cell on opposite sides of a test tube holder, then there's a rotary dial to select the color and a digital panel meter calibrated to display absorbance, all packaged into a generic black project box. Very low tech and primitive, but it works!