Color #9540a1
A moderately saturated medium magenta.
Conversions
#9540a1
rgb(149, 64, 161)
hsl(292.6, 43.1%, 44.1%)
hsv(292.6, 60.2%, 63.1%)
cmyk(7.5%, 60.2%, 0%, 36.9%)
lab(42.2, 49.76, -36.74)
lch(42.2, 61.85, 323.56)
oklch(52.3%, 0.1678, 322.56)
hwb(292.6, 25.1%, 36.9%)
Harmony colors
Accessibility
White text reads better on this background (5.96:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#797991 · ΔE 21.6
Deuteranopia
#7e838d · ΔE 24.4
Tritanopia
#92827f · ΔE 29.2
Achromatopsia
#646464 · ΔE 26.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #9540a1;
bg-[#9540a1]
Related colors
Frequently asked questions
#9540a1 (#9540a1) is rgb(149, 64, 161) in RGB.
No, #9540a1 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 #9540a1, or check how it holds up for accessibility.