Color #5f2c71
A moderately saturated dark purple.
Conversions
#5f2c71
rgb(95, 44, 113)
hsl(284.3, 43.9%, 30.8%)
hsv(284.3, 61.1%, 44.3%)
cmyk(15.9%, 61.1%, 0%, 55.7%)
lab(27.92, 35.17, -30.29)
lch(27.92, 46.42, 319.26)
oklch(39.4%, 0.1227, 316.42)
hwb(284.3, 17.3%, 55.7%)
Harmony colors
Accessibility
White text reads better on this background (10.07:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#4e4d65 · ΔE 15.6
Deuteranopia
#505462 · ΔE 19.1
Tritanopia
#5d5b58 · ΔE 27.3
Achromatopsia
#424242 · ΔE 23.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5f2c71;
bg-[#5f2c71]
Related colors
Frequently asked questions
#5f2c71 (#5f2c71) is rgb(95, 44, 113) in RGB.
No, #5f2c71 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 #5f2c71, or check how it holds up for accessibility.