Color #9e398b
A moderately saturated medium magenta.
Conversions
#9e398b
rgb(158, 57, 139)
hsl(311.3, 47%, 42.2%)
hsv(311.3, 63.9%, 62%)
cmyk(0%, 63.9%, 12%, 38%)
lab(41.31, 51.46, -24.76)
lch(41.31, 57.11, 334.31)
oklch(51.6%, 0.1646, 335.86)
hwb(311.3, 22.4%, 38%)
Harmony colors
Accessibility
White text reads better on this background (6.15:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#7f7e7d · ΔE 28.4
Deuteranopia
#84897a · ΔE 41.2
Tritanopia
#9b716e · ΔE 24.1
Achromatopsia
#616161 · ΔE 25.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #9e398b;
bg-[#9e398b]
Related colors
Frequently asked questions
#9e398b (#9e398b) is rgb(158, 57, 139) in RGB.
No, #9e398b 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 #9e398b, or check how it holds up for accessibility.