#512F93#512F93
#512F93 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.156 H 294.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).
Color values
| HEX | #512F93 |
|---|---|
| RGB | rgb(81, 47, 147) |
| HSL | hsl(260, 52%, 38%) |
| HSV | hsv(260, 68%, 58%) |
| CMYK | cmyk(44.9%, 68%, 0%, 42.4%) |
| CIE-LAB | lab(29.13, 38.93, -49.71) |
| CIE-LCH | lch(29.13, 63.14, 308.07°) |
| OKLab | oklab(40.6% 0.0632 -0.1421) |
| OKLCH | oklch(40.6% 0.156 294) |
| XYZ | xyz(9.6749, 5.8887, 28.2250) |
| Luminance | 0.0589 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.06
Darkslateblue
#483D8B
ΔE00 5.12
Blueberry
#464196
ΔE00 6.12
Indigo Blue
#3A18B1
ΔE00 7.00
Ocean Blue
#4F42B5
ΔE00 7.23
Indigo
#4B0082
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512F93 #71932F
analogous
#2F3F93 #512F93 #832F93
triadic
#512F93 #93512F #2F9351
tetradic
#512F93 #932F3F #71932F #2F9383
square
#512F93 #932F3F #71932F #2F9383
split-complementary
#512F93 #93832F #3F932F
monochromatic
#1E1136 #372065 #512F93 #6B3EC1 #8E6CD0
Accessibility & contrast
On white
9.64
#512F93 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#512F93 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512F93
9.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512F93 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512F93 | 1.00 | 9.64 | 2.18 | 9.64 |
| #FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004696
Deuteranopia (green-blind)
#004391
Tritanopia (blue-blind)
#3F475D
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #512f93; /* rgb */ color: rgb(81, 47, 147); /* oklch */ color: oklch(40.6% 0.156 294.0);
Tailwind
colors: {
custom: {
50: '#886ab3',
500: '#512f93',
950: '#000000',
},
}SCSS
$custom: #512f93; $custom-light: #886ab3; $custom-dark: #000000;
JSON
{
"hex": "#512f93",
"rgb": {
"r": 81,
"g": 47,
"b": 147
},
"hsl": {
"h": 260.4,
"s": 51.546,
"l": 38.039
},
"oklch": {
"l": 0.406,
"c": 0.15554,
"h": 294
},
"luminance": 0.05889
}Semantic roles & 50–950 ramp
primary
#512F93
secondary
#9CB766
accent
#DB4DAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80