I just ran into this neat Osram product ams AS7343 Spectral Sensor Ambient light, Color, Spectral & Proximity Sensors | ams OSRAM
Built into a board it can be found here: SparkFun Spectral Sensor - AS7343 (Qwiic) - SparkFun Electronics
Now if they would only cool it, maybe then it could be useful for something.
Peter
BPEC