#512B99#512B99
#512B99 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.168 H 293.2°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #512B99 |
|---|---|
| RGB | rgb(81, 43, 153) |
| HSL | hsl(261, 56%, 38%) |
| HSV | hsv(261, 72%, 60%) |
| CMYK | cmyk(47.1%, 71.9%, 0%, 40%) |
| CIE-LAB | lab(28.84, 42.80, -53.86) |
| CIE-LCH | lch(28.84, 68.79, 308.47°) |
| OKLab | oklab(40.55% 0.0663 -0.1543) |
| OKLCH | oklch(40.55% 0.168 293.2) |
| XYZ | xyz(10.0054, 5.7767, 30.7187) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.40
Indigo Blue
#3A18B1
ΔE00 5.74
Darkslateblue
#483D8B
ΔE00 6.27
Blueberry
#464196
ΔE00 6.95
Ocean Blue
#4F42B5
ΔE00 7.24
Indigo
#4B0082
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512B99 #73992B
analogous
#2B3C99 #512B99 #882B99
triadic
#512B99 #99512B #2B9951
tetradic
#512B99 #992B3C #73992B #2B9988
square
#512B99 #992B3C #73992B #2B9988
split-complementary
#512B99 #99882B #3C992B
monochromatic
#1E1039 #381E69 #512B99 #6B3AC8 #8F69D5
Accessibility & contrast
On white
9.74
#512B99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#512B99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512B99
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512B99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512B99 | 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)
#00459C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#3C475F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #512b99; /* rgb */ color: rgb(81, 43, 153); /* oklch */ color: oklch(40.5% 0.168 293.2);
Tailwind
colors: {
custom: {
50: '#8968b8',
500: '#512b99',
950: '#000000',
},
}SCSS
$custom: #512b99; $custom-light: #8968b8; $custom-dark: #000000;
JSON
{
"hex": "#512b99",
"rgb": {
"r": 81,
"g": 43,
"b": 153
},
"hsl": {
"h": 260.727,
"s": 56.122,
"l": 38.431
},
"oklch": {
"l": 0.40549,
"c": 0.16793,
"h": 293.2
},
"luminance": 0.05777
}Semantic roles & 50–950 ramp
primary
#512B99
secondary
#9DBC64
accent
#DF48AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80