#512C97#512C97
#512C97 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.164 H 293.6°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #512C97 |
|---|---|
| RGB | rgb(81, 44, 151) |
| HSL | hsl(261, 55%, 38%) |
| HSV | hsv(261, 71%, 59%) |
| CMYK | cmyk(46.4%, 70.9%, 0%, 40.8%) |
| CIE-LAB | lab(28.86, 41.71, -52.60) |
| CIE-LCH | lch(28.86, 67.13, 308.41°) |
| OKLab | oklab(40.51% 0.0657 -0.1506) |
| OKLCH | oklch(40.51% 0.164 293.6) |
| XYZ | xyz(9.8784, 5.7848, 29.8683) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.27
Darkslateblue
#483D8B
ΔE00 5.96
Indigo Blue
#3A18B1
ΔE00 6.09
Blueberry
#464196
ΔE00 6.74
Ocean Blue
#4F42B5
ΔE00 7.27
Indigo
#4B0082
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512C97 #72972C
analogous
#2C3C97 #512C97 #862C97
triadic
#512C97 #97512C #2C9751
tetradic
#512C97 #972C3C #72972C #2C9786
square
#512C97 #972C3C #72972C #2C9786
split-complementary
#512C97 #97862C #3C972C
monochromatic
#1E1038 #381E68 #512C97 #6B3AC6 #8E6AD4
Accessibility & contrast
On white
9.74
#512C97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#512C97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512C97
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512C97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512C97 | 1.00 | 9.74 | 2.16 | 9.74 |
| #FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#3D475E
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #512c97; /* rgb */ color: rgb(81, 44, 151); /* oklch */ color: oklch(40.5% 0.164 293.6);
Tailwind
colors: {
custom: {
50: '#8868b6',
500: '#512c97',
950: '#000000',
},
}SCSS
$custom: #512c97; $custom-light: #8868b6; $custom-dark: #000000;
JSON
{
"hex": "#512c97",
"rgb": {
"r": 81,
"g": 44,
"b": 151
},
"hsl": {
"h": 260.748,
"s": 54.872,
"l": 38.235
},
"oklch": {
"l": 0.40511,
"c": 0.1643,
"h": 293.6
},
"luminance": 0.05785
}Semantic roles & 50–950 ramp
primary
#512C97
secondary
#9DBA65
accent
#DE4AAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80