#512F91#512F91
#512F91 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.153 H 294.5°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).
Color values
| HEX | #512F91 |
|---|---|
| RGB | rgb(81, 47, 145) |
| HSL | hsl(261, 51%, 38%) |
| HSV | hsv(261, 68%, 57%) |
| CMYK | cmyk(44.1%, 67.6%, 0%, 43.1%) |
| CIE-LAB | lab(28.97, 38.36, -48.74) |
| CIE-LCH | lch(28.97, 62.03, 308.20°) |
| OKLab | oklab(40.44% 0.0634 -0.1393) |
| OKLCH | oklch(40.44% 0.153 294.5) |
| XYZ | xyz(9.5193, 5.8265, 27.4056) |
| Luminance | 0.0583 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.07
Darkslateblue
#483D8B
ΔE00 5.04
Blueberry
#464196
ΔE00 6.18
Indigo Blue
#3A18B1
ΔE00 7.26
Ocean Blue
#4F42B5
ΔE00 7.48
Indigo
#4B0082
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512F91 #6F912F
analogous
#2F3E91 #512F91 #822F91
triadic
#512F91 #91512F #2F9151
tetradic
#512F91 #912F3E #6F912F #2F9182
square
#512F91 #912F3E #6F912F #2F9182
split-complementary
#512F91 #91822F #3E912F
monochromatic
#1D1135 #372063 #512F91 #6B3EBF #8E6BCF
Accessibility & contrast
On white
9.70
#512F91 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#512F91 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512F91
9.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512F91 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512F91 | 1.00 | 9.70 | 2.17 | 9.70 |
| #FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#40465C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #512f91; /* rgb */ color: rgb(81, 47, 145); /* oklch */ color: oklch(40.4% 0.153 294.5);
Tailwind
colors: {
custom: {
50: '#876ab2',
500: '#512f91',
950: '#000000',
},
}SCSS
$custom: #512f91; $custom-light: #876ab2; $custom-dark: #000000;
JSON
{
"hex": "#512f91",
"rgb": {
"r": 81,
"g": 47,
"b": 145
},
"hsl": {
"h": 260.816,
"s": 51.042,
"l": 37.647
},
"oklch": {
"l": 0.40435,
"c": 0.15305,
"h": 294.5
},
"luminance": 0.05827
}Semantic roles & 50–950 ramp
primary
#512F91
secondary
#9AB665
accent
#DB4DAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80