Convert RGB to light frequency

user1031431 picture user1031431 · Sep 2, 2012 · Viewed 17k times · Source

Is it possible to obtain the light frequency of a colour from a RGB representation? I've found the opposite process [1] but I don't know if it's possible this way.

[1] http://www.fourmilab.ch/documents/specrend/

Answer

av501 picture av501 · Sep 3, 2012

AFAIK, there is no direct answer because multiple wavelengths can combine to give the same color right? So you have the wavelengths that map to pure colors and then their combinations can give many other and the same colors. And there are several combinations that can give the same color. This is because of inteference. So you essentially are asking for a one to many mapping.

To answer your question: There is no fixed formula. The reverse formulas will give you a range. That is the best it can get.