#51318E#51318E
#51318E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.146 H 294.8°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).
Color values
| HEX | #51318E |
|---|---|
| RGB | rgb(81, 49, 142) |
| HSL | hsl(261, 49%, 37%) |
| HSV | hsv(261, 65%, 56%) |
| CMYK | cmyk(43%, 65.5%, 0%, 44.3%) |
| CIE-LAB | lab(29.16, 36.37, -46.59) |
| CIE-LCH | lch(29.16, 59.10, 307.97°) |
| OKLab | oklab(40.49% 0.0615 -0.133) |
| OKLCH | oklch(40.49% 0.147 294.8) |
| XYZ | xyz(9.3728, 5.8987, 26.2307) |
| Luminance | 0.0590 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.13
Darkslateblue
#483D8B
ΔE00 4.49
Blueberry
#464196
ΔE00 5.84
Ocean Blue
#4F42B5
ΔE00 7.60
Indigo Blue
#3A18B1
ΔE00 7.97
Indigo
#4B0082
ΔE00 8.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51318E #6E8E31
analogous
#31408E #51318E #7F318E
triadic
#51318E #8E5131 #318E51
tetradic
#51318E #8E3140 #6E8E31 #318E7F
square
#51318E #8E3140 #6E8E31 #318E7F
split-complementary
#51318E #8E7F31 #408E31
monochromatic
#1D1233 #372161 #51318E #6B41BB #8E6DCD
Accessibility & contrast
On white
9.63
#51318E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#51318E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51318E
9.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51318E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51318E | 1.00 | 9.63 | 2.18 | 9.63 |
| #FFFFFF | 9.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#41465B
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #51318e; /* rgb */ color: rgb(81, 49, 142); /* oklch */ color: oklch(40.5% 0.146 294.8);
Tailwind
colors: {
custom: {
50: '#876bb0',
500: '#51318e',
950: '#000000',
},
}SCSS
$custom: #51318e; $custom-light: #876bb0; $custom-dark: #000000;
JSON
{
"hex": "#51318e",
"rgb": {
"r": 81,
"g": 49,
"b": 142
},
"hsl": {
"h": 260.645,
"s": 48.691,
"l": 37.451
},
"oklch": {
"l": 0.40495,
"c": 0.1465,
"h": 294.8
},
"luminance": 0.05899
}Semantic roles & 50–950 ramp
primary
#51318E
secondary
#99B467
accent
#D850A9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F