Color #5a2d97
A moderately saturated dark purple.
Conversions
#5a2d97
rgb(90, 45, 151)
hsl(265.5, 54.1%, 38.4%)
hsv(265.5, 70.2%, 59.2%)
cmyk(40.4%, 70.2%, 0%, 40.8%)
lab(30.12, 42.93, -50.51)
lch(30.12, 66.29, 310.36)
oklch(41.7%, 0.1638, 298.4)
hwb(265.5, 17.6%, 40.8%)
Harmony colors
Accessibility
White text reads better on this background (9.3:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#4a4a87 · ΔE 10.8
Deuteranopia
#4d5082 · ΔE 13.1
Tritanopia
#587874 · ΔE 32.1
Achromatopsia
#474747 · ΔE 26.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5a2d97;
bg-[#5a2d97]
Related colors
Frequently asked questions
#5a2d97 (#5a2d97) is rgb(90, 45, 151) in RGB.
No, #5a2d97 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 #5a2d97, or check how it holds up for accessibility.