sRGB like Lab* is device independent so a transformation between the two is possible.
RGB on the other hand is device dependent, and would therefore require a device ICC Profile to convert to Lab*.
For example, the Physical reality is the different frequencies (equivalently wavelengths) of light. The Biological reality is that different types of cells on our retina respond with differing intensity to each of those frequencies.
So to my naive mind, a way of modeling color is to have (i) a forward model that map light frequencies to response intensities of the different types of cellular light receptors and (ii) an inverse model that estimates the frequency mix of light from the cellular responses.
That is, have two spaces the light frequencity space (a list of tuple of frequency and intensity/power at that frequency) and the cellular response space.
Once we have these, we can go from a pigment or excited phosphor to a biological response in a two step process.
From (a) pigment/phosphor (+ frequency mix of illuminating light) to output light frequencities (b) from those frequencities to cellular response.
For all processing make frequencities the base space to work in (allowing us to change/personalize the forward model).
Yes, the inverse model leads to an ill posed inverse problem, but we are now very knowledgeable about how to solve these.
The frequencies may need to discretized for convenience.
I am obviously a novice and don't know much about modeling color, but this way of modeling seems more grounded in the tangibles. This also gives a way to model how a colorblind person might perceive a picture.
Is the reason that we do not do it this way it's complexity ?
Eager to be illuminated (pun intended).
Your approach would make a lot of sense for sensors that are full spectrum analyzers, but the eye isn't one.
Yes because it's not a one to one map we cannot invert the map uniquely, but that's ok, we will maintain a distribution over the possible frequencities consistent with the reaponse. That's how it's done in other areas of mathematics where similar non-bijections arise.
Much thanks for answering though, because I suspect I am asking a very basic question.
* https://repo.autonoma.ca/repo/delibero/blob/HEAD/source/xsl/...
* https://repo.autonoma.ca/repo/delibero/blob/HEAD/source/xsl/...
An example pie chart is on page 33, section 9.2.3:
* https://repo.autonoma.ca/repo/delibero/raw/HEAD/docs/manual/...
* https://i.ibb.co/ymDLcPNj/pie-chart.png (screenshot)
The colours are harmonious, visually distinct, and not hard-coded to a fixed number of slices.
(Although, like several other commenters, I do recommend OKLab.)