#512B95#512B95
#512B95 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.163 H 294.3°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).
Color values
| HEX | #512B95 |
|---|---|
| RGB | rgb(81, 43, 149) |
| HSL | hsl(262, 55%, 38%) |
| HSV | hsv(262, 71%, 58%) |
| CMYK | cmyk(45.6%, 71.1%, 0%, 41.6%) |
| CIE-LAB | lab(28.50, 41.68, -51.96) |
| CIE-LCH | lch(28.50, 66.61, 308.73°) |
| OKLab | oklab(40.2% 0.0671 -0.1487) |
| OKLCH | oklch(40.2% 0.163 294.3) |
| XYZ | xyz(9.6806, 5.6467, 29.0078) |
| Luminance | 0.0565 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.30
Darkslateblue
#483D8B
ΔE00 6.08
Indigo Blue
#3A18B1
ΔE00 6.20
Blueberry
#464196
ΔE00 6.98
Indigo
#4B0082
ΔE00 7.03
Ocean Blue
#4F42B5
ΔE00 7.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512B95 #6F952B
analogous
#2B3A95 #512B95 #862B95
triadic
#512B95 #95512B #2B9551
tetradic
#512B95 #952B3A #6F952B #2B9586
square
#512B95 #952B3A #6F952B #2B9586
split-complementary
#512B95 #95862B #3A952B
monochromatic
#1D1036 #371D66 #512B95 #6B39C4 #8E67D3
Accessibility & contrast
On white
9.86
#512B95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#512B95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512B95
9.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512B95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512B95 | 1.00 | 9.86 | 2.13 | 9.86 |
| #FFFFFF | 9.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#3E465D
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #512b95; /* rgb */ color: rgb(81, 43, 149); /* oklch */ color: oklch(40.2% 0.163 294.3);
Tailwind
colors: {
custom: {
50: '#8867b5',
500: '#512b95',
950: '#000000',
},
}SCSS
$custom: #512b95; $custom-light: #8867b5; $custom-dark: #000000;
JSON
{
"hex": "#512b95",
"rgb": {
"r": 81,
"g": 43,
"b": 149
},
"hsl": {
"h": 261.509,
"s": 55.208,
"l": 37.647
},
"oklch": {
"l": 0.40203,
"c": 0.16315,
"h": 294.3
},
"luminance": 0.05647
}Semantic roles & 50–950 ramp
primary
#512B95
secondary
#9ABA62
accent
#DF49A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80