Skip to content
Kolorvia
#5a1f6f

Color #5a1f6f

A moderately saturated dark purple.

Conversions

HEX
#5a1f6f
RGB
rgb(90, 31, 111)
HSL
hsl(284.3, 56.3%, 27.8%)
HSV / HSB
hsv(284.3, 72.1%, 43.5%)
CMYK
cmyk(18.9%, 72.1%, 0%, 56.5%)
LAB
lab(24.64, 39.98, -34.28)
LCH
lch(24.64, 52.66, 319.39)
OKLCH
oklch(36.8%, 0.1383, 315.79)
HWB
hwb(284.3, 12.2%, 56.5%)

Harmony colors

Complementary

#346f1f

Analogous

#321f6f
#5a1f6f
#6f1f5c

Triadic

#5a1f6f
#6f5a1f
#1f6f5a

Split-complementary

#5a1f6f
#5c6f1f
#1f6f32

Tetradic

#5a1f6f
#6f1f34
#346f1f
#1f6f5a

Square

#5a1f6f
#6f321f
#346f1f
#1f5c6f

Shades

Color #5a1f6f mixed toward black.

#4b1a5c
#3c154a
#2d0f37
#1e0a25
#0f0512

Tints

Color #5a1f6f mixed toward white.

#812c9f
#a53fc9
#bc6fd7
#d29fe4
#e9cff2

Tones

Color #5a1f6f mixed toward gray.

#572668
#542c61
#50335b
#4d3a54
#4a404e

Accessibility

Aa White text on this color
11.29:1
Aa Black text on this color
1.86:1

White text reads better on this background (11.29:1). That passes WCAG AAA (≥7:1) for normal-size text.

Under color vision deficiencies

Protanopia

#484763 · ΔE 16.1

Deuteranopia

#4a4e5f · ΔE 19.4

Tritanopia

#585755 · ΔE 28.1

Achromatopsia

#3a3a3a · ΔE 24.8

Left half is the original, right half is the simulated appearance. See all 8 vision types →

Code

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

Related colors

Dark Violet #9400d3
Medium Orchid #ba55d3
Dark Orchid #9932cc
Indigo #4b0082
Blue Violet #8a2be2
Rebecca Purple #663399

Frequently asked questions

#5a1f6f (#5a1f6f) is rgb(90, 31, 111) in RGB.

No, #5a1f6f is not web-safe. The nearest web-safe colors are among its tones and shades below.

Related tools

Build something with this color

Generate a full palette from #5a1f6f, 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.