Color #5a3152
A muted dark magenta.
Conversions
#5a3152
rgb(90, 49, 82)
hsl(311.7, 29.5%, 27.3%)
hsv(311.7, 45.6%, 35.3%)
cmyk(0%, 45.6%, 8.9%, 64.7%)
lab(26.68, 24, -12.17)
lch(26.68, 26.91, 333.11)
oklch(37.8%, 0.0764, 334.58)
hwb(311.7, 19.2%, 64.7%)
Harmony colors
Accessibility
White text reads better on this background (10.52:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#4b4b4c · ΔE 20.1
Deuteranopia
#4e504a · ΔE 26.9
Tritanopia
#584645 · ΔE 15.3
Achromatopsia
#3f3f3f · ΔE 20.1
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5a3152;
bg-[#5a3152]
Related colors
Frequently asked questions
#5a3152 (#5a3152) is rgb(90, 49, 82) in RGB.
No, #5a3152 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 #5a3152, or check how it holds up for accessibility.