There are also color science packages like this one that let you do conversions to various spaces - https://www.colour-science.org/