#512C92#512C92
#512C92 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.158 H 294.9°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).
Color values
| HEX | #512C92 |
|---|---|
| RGB | rgb(81, 44, 146) |
| HSL | hsl(262, 54%, 37%) |
| HSV | hsv(262, 70%, 57%) |
| CMYK | cmyk(44.5%, 69.9%, 0%, 42.7%) |
| CIE-LAB | lab(28.45, 40.30, -50.21) |
| CIE-LCH | lch(28.45, 64.38, 308.75°) |
| OKLab | oklab(40.09% 0.0665 -0.1436) |
| OKLCH | oklch(40.09% 0.158 294.9) |
| XYZ | xyz(9.4809, 5.6258, 27.7749) |
| Luminance | 0.0563 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.21
Darkslateblue
#483D8B
ΔE00 5.76
Indigo Blue
#3A18B1
ΔE00 6.71
Blueberry
#464196
ΔE00 6.82
Indigo
#4B0082
ΔE00 7.11
Ocean Blue
#4F42B5
ΔE00 7.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512C92 #6D922C
analogous
#2C3A92 #512C92 #842C92
triadic
#512C92 #92512C #2C9251
tetradic
#512C92 #922C3A #6D922C #2C9284
square
#512C92 #922C3A #6D922C #2C9284
split-complementary
#512C92 #92842C #3A922C
monochromatic
#1D1034 #371E63 #512C92 #6B3AC1 #8E67D1
Accessibility & contrast
On white
9.88
#512C92 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#512C92 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512C92
9.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512C92 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512C92 | 1.00 | 9.88 | 2.13 | 9.88 |
| #FFFFFF | 9.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004495
Deuteranopia (green-blind)
#004190
Tritanopia (blue-blind)
#3F455B
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #512c92; /* rgb */ color: rgb(81, 44, 146); /* oklch */ color: oklch(40.1% 0.158 294.9);
Tailwind
colors: {
custom: {
50: '#8868b3',
500: '#512c92',
950: '#000000',
},
}SCSS
$custom: #512c92; $custom-light: #8868b3; $custom-dark: #000000;
JSON
{
"hex": "#512c92",
"rgb": {
"r": 81,
"g": 44,
"b": 146
},
"hsl": {
"h": 261.765,
"s": 53.684,
"l": 37.255
},
"oklch": {
"l": 0.40086,
"c": 0.15825,
"h": 294.9
},
"luminance": 0.05626
}Semantic roles & 50–950 ramp
primary
#512C92
secondary
#99B862
accent
#DD4BA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80