Skip to content
Kolorvia
#5b408a

Color #5b408a

A muted dark purple.

Conversions

HEX
#5b408a
RGB
rgb(91, 64, 138)
HSL
hsl(261.9, 36.6%, 39.6%)
HSV / HSB
hsv(261.9, 53.6%, 54.1%)
CMYK
cmyk(34.1%, 53.6%, 0%, 45.9%)
LAB
lab(33.41, 28.73, -37.23)
LCH
lch(33.41, 47.03, 307.66)
OKLCH
oklch(43.8%, 0.1192, 298.18)
HWB
hwb(261.9, 25.1%, 45.9%)

Harmony colors

Complementary

#6f8a40

Analogous

#404a8a
#5b408a
#80408a

Triadic

#5b408a
#8a5b40
#408a5b

Split-complementary

#5b408a
#8a8040
#4a8a40

Tetradic

#5b408a
#8a406f
#6f8a40
#408a5b

Square

#5b408a
#8a404a
#6f8a40
#408a80

Shades

Color #5b408a mixed toward black.

#4c3573
#3d2b5c
#2e2045
#1e152e
#0f0b17

Tints

Color #5b408a mixed toward white.

#7250ad
#8e73be
#aa96ce
#c7b9de
#e3dcef

Tones

Color #5b408a mixed toward gray.

#5d4684
#5e4c7e
#605377
#625971
#635f6b

Accessibility

Aa White text on this color
8.25:1
Aa Black text on this color
2.55:1

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

CSS
background-color: #5b408a;
Tailwind (arbitrary value)
bg-[#5b408a]

Related colors

Medium Purple #9370db
Rebecca Purple #663399
Blue Violet #8a2be2
Indigo #4b0082
Dark Slate Blue #483d8b
Medium Slate Blue #7b68ee

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

Build something with this color

Generate a full palette from #5b408a, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.