Color #5b408a
A muted dark purple.
Conversions
#5b408a
rgb(91, 64, 138)
hsl(261.9, 36.6%, 39.6%)
hsv(261.9, 53.6%, 54.1%)
cmyk(34.1%, 53.6%, 0%, 45.9%)
lab(33.41, 28.73, -37.23)
lch(33.41, 47.03, 307.66)
oklch(43.8%, 0.1192, 298.18)
hwb(261.9, 25.1%, 45.9%)
Harmony colors
Accessibility
White text reads better on this background (8.25:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#51507d · ΔE 8.1
Deuteranopia
#52547a · ΔE 10
Tritanopia
#5a716f · ΔE 26.5
Achromatopsia
#4f4f4f · ΔE 23.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5b408a;
bg-[#5b408a]
Related colors
Frequently asked questions
#5b408a (#5b408a) is rgb(91, 64, 138) in RGB.
No, #5b408a 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 #5b408a, or check how it holds up for accessibility.