Code:
import colour
rgb = [.8,.3,.1]
XYZ = colour.sRGB_to_XYZ(rgb)
xyY = colour.XYZ_to_xyY(XYZ)
munsell = colour.xyY_to_munsell_colour(xyY)
print(munsell)
You need to install “colour-science”:
pip install colour-science
I cannot vouch if it is the correct scientific approach. I needed a quick conversion mechanism for a task, and it works for me. Since I did not find any easy guide on the internet, I thought to share this.