#512C93#512C93
#512C93 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.159 H 294.6°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).
Color values
| HEX | #512C93 |
|---|---|
| RGB | rgb(81, 44, 147) |
| HSL | hsl(262, 54%, 37%) |
| HSV | hsv(262, 70%, 58%) |
| CMYK | cmyk(44.9%, 70.1%, 0%, 42.4%) |
| CIE-LAB | lab(28.53, 40.58, -50.69) |
| CIE-LCH | lch(28.53, 64.93, 308.68°) |
| OKLab | oklab(40.17% 0.0664 -0.145) |
| OKLCH | oklch(40.17% 0.159 294.6) |
| XYZ | xyz(9.5591, 5.6570, 28.1864) |
| Luminance | 0.0566 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.21
Darkslateblue
#483D8B
ΔE00 5.79
Indigo Blue
#3A18B1
ΔE00 6.58
Blueberry
#464196
ΔE00 6.80
Indigo
#4B0082
ΔE00 7.15
Ocean Blue
#4F42B5
ΔE00 7.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512C93 #6E932C
analogous
#2C3B93 #512C93 #842C93
triadic
#512C93 #93512C #2C9351
tetradic
#512C93 #932C3B #6E932C #2C9384
square
#512C93 #932C3B #6E932C #2C9384
split-complementary
#512C93 #93842C #3B932C
monochromatic
#1D1035 #371E64 #512C93 #6B3AC2 #8E68D2
Accessibility & contrast
On white
9.85
#512C93 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#512C93 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512C93
9.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512C93 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512C93 | 1.00 | 9.85 | 2.13 | 9.85 |
| #FFFFFF | 9.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004496
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#3F455C
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #512c93; /* rgb */ color: rgb(81, 44, 147); /* oklch */ color: oklch(40.2% 0.159 294.6);
Tailwind
colors: {
custom: {
50: '#8868b3',
500: '#512c93',
950: '#000000',
},
}SCSS
$custom: #512c93; $custom-light: #8868b3; $custom-dark: #000000;
JSON
{
"hex": "#512c93",
"rgb": {
"r": 81,
"g": 44,
"b": 147
},
"hsl": {
"h": 261.553,
"s": 53.927,
"l": 37.451
},
"oklch": {
"l": 0.4017,
"c": 0.15946,
"h": 294.6
},
"luminance": 0.05657
}Semantic roles & 50–950 ramp
primary
#512C93
secondary
#99B863
accent
#DD4AA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80