#51318F#51318F
#51318F is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.148 H 294.6°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).
Color values
| HEX | #51318F |
|---|---|
| RGB | rgb(81, 49, 143) |
| HSL | hsl(260, 49%, 38%) |
| HSV | hsv(260, 66%, 56%) |
| CMYK | cmyk(43.4%, 65.7%, 0%, 43.9%) |
| CIE-LAB | lab(29.23, 36.65, -47.08) |
| CIE-LCH | lch(29.23, 59.67, 307.90°) |
| OKLab | oklab(40.58% 0.0614 -0.1344) |
| OKLCH | oklch(40.58% 0.148 294.6) |
| XYZ | xyz(9.4483, 5.9289, 26.6279) |
| Luminance | 0.0593 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.10
Darkslateblue
#483D8B
ΔE00 4.51
Blueberry
#464196
ΔE00 5.79
Ocean Blue
#4F42B5
ΔE00 7.46
Indigo Blue
#3A18B1
ΔE00 7.84
Indigo
#4B0082
ΔE00 8.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51318F #6F8F31
analogous
#31408F #51318F #80318F
triadic
#51318F #8F5131 #318F51
tetradic
#51318F #8F3140 #6F8F31 #318F80
square
#51318F #8F3140 #6F8F31 #318F80
split-complementary
#51318F #8F8031 #408F31
monochromatic
#1D1234 #372161 #51318F #6B41BD #8E6DCD
Accessibility & contrast
On white
9.61
#51318F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#51318F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51318F
9.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51318F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51318F | 1.00 | 9.61 | 2.19 | 9.61 |
| #FFFFFF | 9.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#40475B
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #51318f; /* rgb */ color: rgb(81, 49, 143); /* oklch */ color: oklch(40.6% 0.148 294.6);
Tailwind
colors: {
custom: {
50: '#876bb0',
500: '#51318f',
950: '#000000',
},
}SCSS
$custom: #51318f; $custom-light: #876bb0; $custom-dark: #000000;
JSON
{
"hex": "#51318f",
"rgb": {
"r": 81,
"g": 49,
"b": 143
},
"hsl": {
"h": 260.426,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.40575,
"c": 0.14777,
"h": 294.6
},
"luminance": 0.05929
}Semantic roles & 50–950 ramp
primary
#51318F
secondary
#9AB567
accent
#D94FAA
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0711
muted
#7D7A80