#512F92#512F92
#512F92 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.154 H 294.2°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).
Color values
| HEX | #512F92 |
|---|---|
| RGB | rgb(81, 47, 146) |
| HSL | hsl(261, 51%, 38%) |
| HSV | hsv(261, 68%, 57%) |
| CMYK | cmyk(44.5%, 67.8%, 0%, 42.7%) |
| CIE-LAB | lab(29.05, 38.65, -49.23) |
| CIE-LCH | lch(29.05, 62.59, 308.13°) |
| OKLab | oklab(40.52% 0.0633 -0.1407) |
| OKLCH | oklch(40.52% 0.154 294.2) |
| XYZ | xyz(9.5968, 5.8574, 27.8135) |
| Luminance | 0.0586 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.06
Darkslateblue
#483D8B
ΔE00 5.08
Blueberry
#464196
ΔE00 6.15
Indigo Blue
#3A18B1
ΔE00 7.13
Ocean Blue
#4F42B5
ΔE00 7.36
Indigo
#4B0082
ΔE00 7.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512F92 #70922F
analogous
#2F3F92 #512F92 #822F92
triadic
#512F92 #92512F #2F9251
tetradic
#512F92 #922F3F #70922F #2F9282
square
#512F92 #922F3F #70922F #2F9282
split-complementary
#512F92 #92822F #3F922F
monochromatic
#1E1135 #372064 #512F92 #6B3EC0 #8E6CD0
Accessibility & contrast
On white
9.67
#512F92 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#512F92 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512F92
9.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512F92 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512F92 | 1.00 | 9.67 | 2.17 | 9.67 |
| #FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004595
Deuteranopia (green-blind)
#004390
Tritanopia (blue-blind)
#3F475C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #512f92; /* rgb */ color: rgb(81, 47, 146); /* oklch */ color: oklch(40.5% 0.154 294.2);
Tailwind
colors: {
custom: {
50: '#886ab3',
500: '#512f92',
950: '#000000',
},
}SCSS
$custom: #512f92; $custom-light: #886ab3; $custom-dark: #000000;
JSON
{
"hex": "#512f92",
"rgb": {
"r": 81,
"g": 47,
"b": 146
},
"hsl": {
"h": 260.606,
"s": 51.295,
"l": 37.843
},
"oklch": {
"l": 0.40517,
"c": 0.1543,
"h": 294.2
},
"luminance": 0.05858
}Semantic roles & 50–950 ramp
primary
#512F92
secondary
#9BB766
accent
#DB4DAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80