Color #5f3e99
A moderately saturated medium purple.
Conversions
#5f3e99
rgb(95, 62, 153)
hsl(261.8, 42.3%, 42.2%)
hsv(261.8, 59.5%, 60%)
cmyk(37.9%, 59.5%, 0%, 40%)
lab(34.35, 35.12, -44.86)
lch(34.35, 56.97, 308.06)
oklch(44.9%, 0.143, 297)
hwb(261.8, 24.3%, 40%)
Harmony colors
Accessibility
White text reads better on this background (7.97:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#53528a · ΔE 8.8
Deuteranopia
#545786 · ΔE 10.9
Tritanopia
#5e7c79 · ΔE 29.8
Achromatopsia
#515151 · ΔE 25.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5f3e99;
bg-[#5f3e99]
Related colors
Frequently asked questions
#5f3e99 (#5f3e99) is rgb(95, 62, 153) in RGB.
No, #5f3e99 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 #5f3e99, or check how it holds up for accessibility.