Color #9d7fa6
A muted medium purple.
Conversions
#9d7fa6
rgb(157, 127, 166)
hsl(286.2, 18%, 57.5%)
hsv(286.2, 23.5%, 65.1%)
cmyk(5.4%, 23.5%, 0%, 34.9%)
lab(57.17, 18.77, -16.38)
lch(57.17, 24.91, 318.89)
oklch(63.8%, 0.0667, 318.35)
hwb(286.2, 49.8%, 34.9%)
Harmony colors
Accessibility
Black text reads better on this background (6.02:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#91919e · ΔE 14.1
Deuteranopia
#93959c · ΔE 17
Tritanopia
#9c9795 · ΔE 18.9
Achromatopsia
#898989 · ΔE 18.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #9d7fa6;
bg-[#9d7fa6]
Related colors
Frequently asked questions
#9d7fa6 (#9d7fa6) is rgb(157, 127, 166) in RGB.
No, #9d7fa6 is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.
Related tools
HEX to RGB Converter
Convert any HEX color code to its RGB and HSL equivalents, live, with copy-to-clipboard values.
Try it → AccessibilityContrast Checker
Check the WCAG contrast ratio between any two colors, live, with AA/AAA pass-fail results.
Try it → GeneratorsPalette Generator
Generate complementary, analogous, triadic, split-complementary, tetradic, square, and monochromatic palettes from any base color.
Try it →Build something with this color
Generate a full palette from #9d7fa6, or check how it holds up for accessibility.