![](/uploads/1/2/6/6/126603952/966228701.jpg)
Find for RGB colors by name. Simple color search.
(dufy:munsell-to-xyz '3.2R 4.5/6.1 ');; = 0.8394688d0;; 0.6032797d0;; 0.1243561d0(dufy:munsell-to-xyz '3.2R 4.5/86.1 ');; = 1.317545d0;; 0.1162577d0;; -0.2088697d0The converters are based on. In the second example munsell-to-xyz extrapolate the colors far out of the data (and the MacAdam limits, of course), which is meaningless in many cases but will be necessary to process the boundary colors. Both inter- and extrapolation are done via LCh ab color space. (dufy:munsell-to-mhvc '3.2R 4.5/6.1 ');; = 1.28d0;; 4.5d0;; 6.1d0(dufy:mhvc-to-xyz 1.28 4.5 6.1);; = 0.8394688d0;; 0.6032797d0;; 0.1243561d0munsell is the standard string notation of Munsell color. Mhvc is its three-number expression, which will be easier to deal with in some cases. A hue number of mhvc corresponds to a hue string of munsell as follows: Hue in mhvcHue in munsell0 to 410RP (=0R) to 10R (=0YR)4 to 810R (=0YR) to 10YR (=0Y).36 to 4010P (=0RP) to 10RP (=0R)The hue of of mhvc is a circle group: i.e. Hues outside the interval 0, 40 are acceptable.
(dufy:mhvc-to-munsell 400.0 4.5 6.1); the same as (0.0 4.5 6.1);; = '0.00R 4.50/6.10'There are some more points to remember: First, since the is measured not with illuminant D65, but with C, the converters like mhvc-to-xyz do the (Bradford) transformation from C to D65. If you want to use a direct converter with illuminant C, for e.g.
Accuracy or efficiency, the converters with suffix -illum-c are available under illuminant C: munsell-to-lchab-illum-c, lchab-to-munsell-illum-c, mhvc-to-lchab-illum-c, lchab-to-mhvc-illum-c, munsell-to-xyz-illum-c, mhvc-to-xyz-illum-c, xyz-to-mhvc-illum-c, xyz-to-munsell-illum-c.Second, if you want to know the gamut of the Munsell renotation data, you can find the maximum chroma for a given hue and value by max-chroma-in-mrd. (dufy:max-chroma-in-mrd 1.28 4.5); V = 1.28, C = 4.5;; = 24(dufy:mhvc-to-xyz 1.28 4.5 6.1);; = 0.7300654d0;; 0.669221d0;; 0.7832986d0; interpolated, since 6.1 0.77375d0;; 0.0177885d0;; 0.3814263d0; extrapolated, since 24.1 24Example of Munsell-to-RGB conversionCurrently there's no single function to convert a color between the Munsell Color space and an arbitrary RGB space. Below is an example to convert a Munsell color to sRGB hex code (and invert it).
![](/uploads/1/2/6/6/126603952/966228701.jpg)