I picked up a low pressure sodium lamp and am working on a Halloween demonstration. I’m hoping to make a display that appears one way under normal light, but looks totally different under the monochromatic 589nm sodium vapor light.
So basically, I’m looking to generate a color wheel where I pick a shade of gray and get a list of colors that would look that gray under sodium vapor light.
…I feel like there must be a Python library for thing or something…
Here’s the Wikipedia section one general colour space, with a pretty diagram of chromaticity, and the one on CMYK colour conversion. What you want is the preimage of a CMYK colour projected into the entire perceptual space.
CMYK actually sounds kind of complicated to do this with, so yeah look for a pre-made function to convert CMYK to CIE 1931 in whatever “normal” light you have. I can help you find the preimage from that once you do.
Edit: Oh wait, this was a Halloween thing. Maybe for next year?