#512E93#512E93
#512E93 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.157 H 294.2°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).
Color values
| HEX | #512E93 |
|---|---|
| RGB | rgb(81, 46, 147) |
| HSL | hsl(261, 52%, 38%) |
| HSV | hsv(261, 69%, 58%) |
| CMYK | cmyk(44.9%, 68.7%, 0%, 42.4%) |
| CIE-LAB | lab(28.93, 39.49, -50.04) |
| CIE-LCH | lch(28.93, 63.75, 308.28°) |
| OKLab | oklab(40.45% 0.0643 -0.1431) |
| OKLCH | oklch(40.45% 0.157 294.2) |
| XYZ | xyz(9.6354, 5.8096, 28.2118) |
| Luminance | 0.0581 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.10
Darkslateblue
#483D8B
ΔE00 5.34
Blueberry
#464196
ΔE00 6.35
Indigo Blue
#3A18B1
ΔE00 6.85
Ocean Blue
#4F42B5
ΔE00 7.39
Indigo
#4B0082
ΔE00 7.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512E93 #70932E
analogous
#2E3D93 #512E93 #832E93
triadic
#512E93 #93512E #2E9351
tetradic
#512E93 #932E3D #70932E #2E9383
square
#512E93 #932E3D #70932E #2E9383
split-complementary
#512E93 #93832E #3D932E
monochromatic
#1E1136 #371F64 #512E93 #6B3DC2 #8E6BD1
Accessibility & contrast
On white
9.71
#512E93 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#512E93 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512E93
9.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512E93 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512E93 | 1.00 | 9.71 | 2.16 | 9.71 |
| #FFFFFF | 9.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004596
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#3F465C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #512e93; /* rgb */ color: rgb(81, 46, 147); /* oklch */ color: oklch(40.5% 0.157 294.2);
Tailwind
colors: {
custom: {
50: '#8869b3',
500: '#512e93',
950: '#000000',
},
}SCSS
$custom: #512e93; $custom-light: #8869b3; $custom-dark: #000000;
JSON
{
"hex": "#512e93",
"rgb": {
"r": 81,
"g": 46,
"b": 147
},
"hsl": {
"h": 260.792,
"s": 52.332,
"l": 37.843
},
"oklch": {
"l": 0.40454,
"c": 0.15686,
"h": 294.2
},
"luminance": 0.0581
}Semantic roles & 50–950 ramp
primary
#512E93
secondary
#9BB865
accent
#DC4CAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80