#512F90#512F90
#512F90 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.152 H 294.8°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #512F90 |
|---|---|
| RGB | rgb(81, 47, 144) |
| HSL | hsl(261, 51%, 37%) |
| HSV | hsv(261, 67%, 56%) |
| CMYK | cmyk(43.8%, 67.4%, 0%, 43.5%) |
| CIE-LAB | lab(28.89, 38.08, -48.25) |
| CIE-LCH | lch(28.89, 61.47, 308.28°) |
| OKLab | oklab(40.35% 0.0636 -0.1378) |
| OKLCH | oklch(40.35% 0.152 294.8) |
| XYZ | xyz(9.4425, 5.7957, 27.0013) |
| Luminance | 0.0580 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.09
Darkslateblue
#483D8B
ΔE00 5.01
Blueberry
#464196
ΔE00 6.21
Indigo Blue
#3A18B1
ΔE00 7.39
Ocean Blue
#4F42B5
ΔE00 7.61
Indigo
#4B0082
ΔE00 7.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512F90 #6E902F
analogous
#2F3E90 #512F90 #812F90
triadic
#512F90 #90512F #2F9051
tetradic
#512F90 #902F3E #6E902F #2F9081
square
#512F90 #902F3E #6E902F #2F9081
split-complementary
#512F90 #90812F #3E902F
monochromatic
#1D1134 #372062 #512F90 #6B3EBE #8E6BCF
Accessibility & contrast
On white
9.73
#512F90 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#512F90 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512F90
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512F90 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512F90 | 1.00 | 9.73 | 2.16 | 9.73 |
| #FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#00438E
Tritanopia (blue-blind)
#40465B
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #512f90; /* rgb */ color: rgb(81, 47, 144); /* oklch */ color: oklch(40.4% 0.152 294.8);
Tailwind
colors: {
custom: {
50: '#876ab1',
500: '#512f90',
950: '#000000',
},
}SCSS
$custom: #512f90; $custom-light: #876ab1; $custom-dark: #000000;
JSON
{
"hex": "#512f90",
"rgb": {
"r": 81,
"g": 47,
"b": 144
},
"hsl": {
"h": 261.031,
"s": 50.785,
"l": 37.451
},
"oklch": {
"l": 0.40353,
"c": 0.15179,
"h": 294.8
},
"luminance": 0.05796
}Semantic roles & 50–950 ramp
primary
#512F90
secondary
#99B665
accent
#DA4EA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80