#512C99#512C99
#512C99 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.167 H 293.1°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).
Color values
| HEX | #512C99 |
|---|---|
| RGB | rgb(81, 44, 153) |
| HSL | hsl(260, 55%, 39%) |
| HSV | hsv(260, 71%, 60%) |
| CMYK | cmyk(47.1%, 71.2%, 0%, 40%) |
| CIE-LAB | lab(29.03, 42.27, -53.55) |
| CIE-LCH | lch(29.03, 68.22, 308.29°) |
| OKLab | oklab(40.68% 0.0653 -0.1534) |
| OKLCH | oklch(40.68% 0.167 293.1) |
| XYZ | xyz(10.0422, 5.8503, 30.7309) |
| Luminance | 0.0585 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.32
Indigo Blue
#3A18B1
ΔE00 5.87
Darkslateblue
#483D8B
ΔE00 6.07
Blueberry
#464196
ΔE00 6.74
Ocean Blue
#4F42B5
ΔE00 7.06
Violet Blue
#510AC9
ΔE00 7.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512C99 #74992C
analogous
#2C3D99 #512C99 #872C99
triadic
#512C99 #99512C #2C9951
tetradic
#512C99 #992C3D #74992C #2C9987
square
#512C99 #992C3D #74992C #2C9987
split-complementary
#512C99 #99872C #3D992C
monochromatic
#1F113A #381E69 #512C99 #6B3BC7 #8F6BD4
Accessibility & contrast
On white
9.68
#512C99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#512C99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512C99
9.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512C99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512C99 | 1.00 | 9.68 | 2.17 | 9.68 |
| #FFFFFF | 9.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#3B485F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #512c99; /* rgb */ color: rgb(81, 44, 153); /* oklch */ color: oklch(40.7% 0.167 293.1);
Tailwind
colors: {
custom: {
50: '#8968b8',
500: '#512c99',
950: '#000000',
},
}SCSS
$custom: #512c99; $custom-light: #8968b8; $custom-dark: #000000;
JSON
{
"hex": "#512c99",
"rgb": {
"r": 81,
"g": 44,
"b": 153
},
"hsl": {
"h": 260.367,
"s": 55.33,
"l": 38.627
},
"oklch": {
"l": 0.40684,
"c": 0.16672,
"h": 293.1
},
"luminance": 0.05851
}Semantic roles & 50–950 ramp
primary
#512C99
secondary
#9EBB66
accent
#DF49AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80