#512B96#512B96
#512B96 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.164 H 294.0°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).
Color values
| HEX | #512B96 |
|---|---|
| RGB | rgb(81, 43, 150) |
| HSL | hsl(261, 55%, 38%) |
| HSV | hsv(261, 71%, 59%) |
| CMYK | cmyk(46%, 71.3%, 0%, 41.2%) |
| CIE-LAB | lab(28.59, 41.96, -52.44) |
| CIE-LCH | lch(28.59, 67.16, 308.67°) |
| OKLab | oklab(40.29% 0.0669 -0.1501) |
| OKLCH | oklch(40.29% 0.164 294) |
| XYZ | xyz(9.7607, 5.6788, 29.4301) |
| Luminance | 0.0568 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.32
Indigo Blue
#3A18B1
ΔE00 6.08
Darkslateblue
#483D8B
ΔE00 6.12
Blueberry
#464196
ΔE00 6.97
Indigo
#4B0082
ΔE00 7.09
Ocean Blue
#4F42B5
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512B96 #70962B
analogous
#2B3B96 #512B96 #862B96
triadic
#512B96 #96512B #2B9651
tetradic
#512B96 #962B3B #70962B #2B9686
square
#512B96 #962B3B #70962B #2B9686
split-complementary
#512B96 #96862B #3B962B
monochromatic
#1E1037 #371D66 #512B96 #6B39C6 #8E68D4
Accessibility & contrast
On white
9.83
#512B96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#512B96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512B96
9.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512B96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512B96 | 1.00 | 9.83 | 2.14 | 9.83 |
| #FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#3D465D
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #512b96; /* rgb */ color: rgb(81, 43, 150); /* oklch */ color: oklch(40.3% 0.164 294.0);
Tailwind
colors: {
custom: {
50: '#8868b6',
500: '#512b96',
950: '#000000',
},
}SCSS
$custom: #512b96; $custom-light: #8868b6; $custom-dark: #000000;
JSON
{
"hex": "#512b96",
"rgb": {
"r": 81,
"g": 43,
"b": 150
},
"hsl": {
"h": 261.308,
"s": 55.44,
"l": 37.843
},
"oklch": {
"l": 0.40289,
"c": 0.16434,
"h": 294
},
"luminance": 0.05679
}Semantic roles & 50–950 ramp
primary
#512B96
secondary
#9BBA63
accent
#DF49AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80