This is why rainbows do not have purple at the edge, and why prisms do not create purple; it is a "non-physical" color (I made that term up, but it hopefully makes sense given my explanation above).
For a more physically-sound mapping of wavelength to color, see the CIE XYZ color system [1]. In particular, in Figure 2, the "pure wavelengths" are given as points along the outside edge of the curved surface, and as you can see, purple does not exist along that outside edge.
For those interested in simulation of color, I highly recommend Jiahao Chen's old notebook "The Colors of Chemistry" [2], which goes through a lot of these concepts, and accurately simulates things like the color of solutions just from knowing their chemical composition. Truly fascinating stuff.
[1] http://www.fourmilab.ch/documents/specrend/ [2] https://github.com/jiahao/ijulia-notebooks/blob/master/2014-...
My very fuzzy recollection is it was this specrend code that was behind the oops of a "The Universe is green!" NYTimes front-page(?) article - someone's research generated spectra, and for PR they derived a color using off-the-web code, but didn't recognize the bogosity of the output value. Red-shifted faces.
The Wikipedia discussion of violet[1] currently seems plausible - yay. Unlike the "Black-body radiation" article,[2] which again has a CIE chromaticity diagram with a blackbody curve going through yellow and missing white, which is indicative of broken whitepoint math. Oh well.
> This mapping of wavelength to RGB value is very misleading
As is so much science education content. It can be fun to imagine how different science learning might be if content wasn't so broken.
[1] https://en.wikipedia.org/wiki/Violet_(color) [2] https://en.wikipedia.org/wiki/Black-body_radiation
About purple, recently I've been looking at pictures of rainbows, and one in particular caught my attention, it shows several (I believe 5) concentric rainbows. The order of the colors alternate on each rainbow, so of the outermost rainbow has red on the outside, the one right next to it has blue on the outside and red on the inside. Then if you look at the intersections or the space in between rainbows, it looks purple.
What makes that space look purple? And what makes the color order alternate?
There was entirely to much text and code for me to bother reading it all and see if it actuallt does somethig more...
Seems a little lean on the color science front. colour-science.org could have done all of this, with much greater focus on the science.
I still remeber when I first realized that white color from the pc-monitor is not white.
The best I can do, having studied Color Science at RIT, is that white is any spectral power distribution a person identifies as white. Yes, it’s a circular definition.
The topic is deeper than it might seem. I can put someone in a room and show them a color they would swear to be white. And then, in an instant, I can change that color by changing the surround, what you see peripherally. It’s freaky.
There's also something odd to me about how one chart appears to be polynomial and the other linear.
Lastly the mapping of RGB value to the frequency on the chart is inconsistent between the two charts. In the first we see 255,0,0 at ~480THz and in the second at over 500THz
In short, neat concept but I think the output needs a little validation.
Been playing around with "inverted colors" lately and noticed that the inversion is purely mathematical, but not perceptual.
For example, if you have the RGB color (120, 30, 10) the inverse of that is (135, 225, 240). But our eyes have different sensitivity to different colors, so when you invert a whole picture, the contrast gets all messed up and it's very hard to tell things apart (wanna try it? Set your screen to inverted colors then watch a video on YouTube and you'll see what I mean).
So, does anyone know how to get "perceptually equivalent" inverted colors?