#512F8D#512F8D
#512F8D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.148 H 295.6°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).
Color values
| HEX | #512F8D |
|---|---|
| RGB | rgb(81, 47, 141) |
| HSL | hsl(262, 50%, 37%) |
| HSV | hsv(262, 67%, 55%) |
| CMYK | cmyk(42.6%, 66.7%, 0%, 44.7%) |
| CIE-LAB | lab(28.66, 37.22, -46.78) |
| CIE-LCH | lch(28.66, 59.79, 308.51°) |
| OKLab | oklab(40.11% 0.0639 -0.1335) |
| OKLCH | oklch(40.11% 0.148 295.6) |
| XYZ | xyz(9.2163, 5.7052, 25.8098) |
| Luminance | 0.0570 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.17
Darkslateblue
#483D8B
ΔE00 4.96
Blueberry
#464196
ΔE00 6.34
Indigo
#4B0082
ΔE00 7.68
Indigo Blue
#3A18B1
ΔE00 7.81
Ocean Blue
#4F42B5
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512F8D #6B8D2F
analogous
#2F3C8D #512F8D #802F8D
triadic
#512F8D #8D512F #2F8D51
tetradic
#512F8D #8D2F3C #6B8D2F #2F8D80
square
#512F8D #8D2F3C #6B8D2F #2F8D80
split-complementary
#512F8D #8D802F #3C8D2F
monochromatic
#1C1031 #37205F #512F8D #6B3EBB #8D69CD
Accessibility & contrast
On white
9.81
#512F8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#512F8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512F8D
9.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512F8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512F8D | 1.00 | 9.81 | 2.14 | 9.81 |
| #FFFFFF | 9.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#414559
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #512f8d; /* rgb */ color: rgb(81, 47, 141); /* oklch */ color: oklch(40.1% 0.148 295.6);
Tailwind
colors: {
custom: {
50: '#876aaf',
500: '#512f8d',
950: '#000000',
},
}SCSS
$custom: #512f8d; $custom-light: #876aaf; $custom-dark: #000000;
JSON
{
"hex": "#512f8d",
"rgb": {
"r": 81,
"g": 47,
"b": 141
},
"hsl": {
"h": 261.702,
"s": 50,
"l": 36.863
},
"oklch": {
"l": 0.4011,
"c": 0.14804,
"h": 295.6
},
"luminance": 0.05705
}Semantic roles & 50–950 ramp
primary
#512F8D
secondary
#97B464
accent
#DA4EA7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F