#512C8F#512C8F
#512C8F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.155 H 295.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).
Color values
| HEX | #512C8F |
|---|---|
| RGB | rgb(81, 44, 143) |
| HSL | hsl(262, 53%, 37%) |
| HSV | hsv(262, 69%, 56%) |
| CMYK | cmyk(43.4%, 69.2%, 0%, 43.9%) |
| CIE-LAB | lab(28.20, 39.46, -48.75) |
| CIE-LCH | lch(28.20, 62.72, 308.98°) |
| OKLab | oklab(39.84% 0.067 -0.1393) |
| OKLCH | oklch(39.84% 0.155 295.7) |
| XYZ | xyz(9.2506, 5.5337, 26.5620) |
| Luminance | 0.0553 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.25
Darkslateblue
#483D8B
ΔE00 5.68
Blueberry
#464196
ΔE00 6.91
Indigo
#4B0082
ΔE00 7.00
Indigo Blue
#3A18B1
ΔE00 7.12
Indigo (survey)
#380282
ΔE00 8.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512C8F #6A8F2C
analogous
#2C398F #512C8F #832C8F
triadic
#512C8F #8F512C #2C8F51
tetradic
#512C8F #8F2C39 #6A8F2C #2C8F83
square
#512C8F #8F2C39 #6A8F2C #2C8F83
split-complementary
#512C8F #8F832C #398F2C
monochromatic
#1C0F31 #361E60 #512C8F #6C3ABE #8D66D0
Accessibility & contrast
On white
9.97
#512C8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#512C8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512C8F
9.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512C8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512C8F | 1.00 | 9.97 | 2.11 | 9.97 |
| #FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#41445A
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #512c8f; /* rgb */ color: rgb(81, 44, 143); /* oklch */ color: oklch(39.8% 0.155 295.7);
Tailwind
colors: {
custom: {
50: '#8768b1',
500: '#512c8f',
950: '#000000',
},
}SCSS
$custom: #512c8f; $custom-light: #8768b1; $custom-dark: #000000;
JSON
{
"hex": "#512c8f",
"rgb": {
"r": 81,
"g": 44,
"b": 143
},
"hsl": {
"h": 262.424,
"s": 52.941,
"l": 36.667
},
"oklch": {
"l": 0.39835,
"c": 0.15458,
"h": 295.7
},
"luminance": 0.05534
}Semantic roles & 50–950 ramp
primary
#512C8F
secondary
#96B661
accent
#DC4BA6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80