Skip to content
Kolorvia
#512f79

Color #512f79

A moderately saturated dark purple.

Conversions

HEX
#512f79
RGB
rgb(81, 47, 121)
HSL
hsl(267.6, 44%, 32.9%)
HSV / HSB
hsv(267.6, 61.2%, 47.5%)
CMYK
cmyk(33.1%, 61.2%, 0%, 52.5%)
LAB
lab(27.19, 31.66, -36.64)
LCH
lch(27.19, 48.42, 310.83)
OKLCH
oklch(38.6%, 0.1225, 302.16)
HWB
hwb(267.6, 18.4%, 52.5%)

Harmony colors

Complementary

#57792f

Analogous

#2f3279
#512f79
#762f79

Triadic

#512f79
#79512f
#2f7951

Split-complementary

#512f79
#79762f
#32792f

Tetradic

#512f79
#792f57
#57792f
#2f7951

Square

#512f79
#792f32
#57792f
#2f7976

Shades

Color #512f79 mixed toward black.

#432765
#361f51
#28173c
#1b1028
#0d0814

Tints

Color #512f79 mixed toward white.

#6c3fa2
#895bbf
#a684cf
#c4addf
#e1d6ef

Tones

Color #512f79 mixed toward gray.

#513573
#523b6d
#524166
#534860
#534e5a

Accessibility

Aa White text on this color
10.33:1
Aa Black text on this color
2.03:1

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

Under color vision deficiencies

Protanopia

#45446d · ΔE 9.9

Deuteranopia

#464969 · ΔE 12.4

Tritanopia

#50615f · ΔE 25.6

Achromatopsia

#404040 · ΔE 24

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

Code

CSS
background-color: #512f79;
Tailwind (arbitrary value)
bg-[#512f79]

Related colors

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

Frequently asked questions

#512f79 (#512f79) is rgb(81, 47, 121) in RGB.

No, #512f79 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 #512f79, 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.