#512F94#512F94
#512F94 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.157 H 293.7°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).
Color values
| HEX | #512F94 |
|---|---|
| RGB | rgb(81, 47, 148) |
| HSL | hsl(260, 52%, 38%) |
| HSV | hsv(260, 68%, 58%) |
| CMYK | cmyk(45.3%, 68.2%, 0%, 42%) |
| CIE-LAB | lab(29.21, 39.22, -50.20) |
| CIE-LCH | lch(29.21, 63.70, 308.00°) |
| OKLab | oklab(40.68% 0.063 -0.1435) |
| OKLCH | oklch(40.68% 0.157 293.7) |
| XYZ | xyz(9.7537, 5.9202, 28.6400) |
| Luminance | 0.0592 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.07
Darkslateblue
#483D8B
ΔE00 5.16
Blueberry
#464196
ΔE00 6.10
Indigo Blue
#3A18B1
ΔE00 6.88
Ocean Blue
#4F42B5
ΔE00 7.11
Indigo
#4B0082
ΔE00 7.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512F94 #72942F
analogous
#2F3F94 #512F94 #832F94
triadic
#512F94 #94512F #2F9451
tetradic
#512F94 #942F3F #72942F #2F9483
square
#512F94 #942F3F #72942F #2F9483
split-complementary
#512F94 #94832F #3F942F
monochromatic
#1E1137 #382066 #512F94 #6B3EC2 #8E6DD1
Accessibility & contrast
On white
9.62
#512F94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#512F94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512F94
9.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512F94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512F94 | 1.00 | 9.62 | 2.18 | 9.62 |
| #FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#3E475D
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #512f94; /* rgb */ color: rgb(81, 47, 148); /* oklch */ color: oklch(40.7% 0.157 293.7);
Tailwind
colors: {
custom: {
50: '#886ab4',
500: '#512f94',
950: '#000000',
},
}SCSS
$custom: #512f94; $custom-light: #886ab4; $custom-dark: #000000;
JSON
{
"hex": "#512f94",
"rgb": {
"r": 81,
"g": 47,
"b": 148
},
"hsl": {
"h": 260.198,
"s": 51.795,
"l": 38.235
},
"oklch": {
"l": 0.40683,
"c": 0.15678,
"h": 293.7
},
"luminance": 0.0592
}Semantic roles & 50–950 ramp
primary
#512F94
secondary
#9DB867
accent
#DB4DAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80