#512E91#512E91
#512E91 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.154 H 294.7°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).
Color values
| HEX | #512E91 |
|---|---|
| RGB | rgb(81, 46, 145) |
| HSL | hsl(261, 52%, 37%) |
| HSV | hsv(261, 68%, 57%) |
| CMYK | cmyk(44.1%, 68.3%, 0%, 43.1%) |
| CIE-LAB | lab(28.77, 38.92, -49.07) |
| CIE-LCH | lch(28.77, 62.63, 308.42°) |
| OKLab | oklab(40.29% 0.0645 -0.1403) |
| OKLCH | oklch(40.29% 0.154 294.7) |
| XYZ | xyz(9.4798, 5.7474, 27.3925) |
| Luminance | 0.0575 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.11
Darkslateblue
#483D8B
ΔE00 5.27
Blueberry
#464196
ΔE00 6.40
Indigo Blue
#3A18B1
ΔE00 7.11
Indigo
#4B0082
ΔE00 7.53
Ocean Blue
#4F42B5
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512E91 #6E912E
analogous
#2E3D91 #512E91 #822E91
triadic
#512E91 #91512E #2E9151
tetradic
#512E91 #912E3D #6E912E #2E9182
square
#512E91 #912E3D #6E912E #2E9182
split-complementary
#512E91 #91822E #3D912E
monochromatic
#1D1134 #371F63 #512E91 #6B3DBF #8E6AD0
Accessibility & contrast
On white
9.77
#512E91 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#512E91 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512E91
9.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512E91 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512E91 | 1.00 | 9.77 | 2.15 | 9.77 |
| #FFFFFF | 9.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#40465B
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #512e91; /* rgb */ color: rgb(81, 46, 145); /* oklch */ color: oklch(40.3% 0.154 294.7);
Tailwind
colors: {
custom: {
50: '#8769b2',
500: '#512e91',
950: '#000000',
},
}SCSS
$custom: #512e91; $custom-light: #8769b2; $custom-dark: #000000;
JSON
{
"hex": "#512e91",
"rgb": {
"r": 81,
"g": 46,
"b": 145
},
"hsl": {
"h": 261.212,
"s": 51.832,
"l": 37.451
},
"oklch": {
"l": 0.40288,
"c": 0.15439,
"h": 294.7
},
"luminance": 0.05748
}Semantic roles & 50–950 ramp
primary
#512E91
secondary
#99B764
accent
#DB4DA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80