#513B71#513B71
#513B71 is a dark, moderate violet. Relative luminance 0.061; OKLCH L 40.2% C 0.091 H 301.2°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).
Color values
| HEX | #513B71 |
|---|---|
| RGB | rgb(81, 59, 113) |
| HSL | hsl(264, 31%, 34%) |
| HSV | hsv(264, 48%, 44%) |
| CMYK | cmyk(28.3%, 47.8%, 0%, 55.7%) |
| CIE-LAB | lab(29.59, 22.05, -27.76) |
| CIE-LCH | lch(29.59, 35.45, 308.47°) |
| OKLab | oklab(40.2% 0.0471 -0.0777) |
| OKLCH | oklch(40.2% 0.091 301.2) |
| XYZ | xyz(7.9373, 6.0695, 16.3730) |
| Luminance | 0.0607 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 6.74
Blueberry
#464196
ΔE00 8.84
Rebeccapurple
#663399
ΔE00 9.09
Twilight
#4E518B
ΔE00 9.16
Dusk
#4E5481
ΔE00 9.90
Grape
#6C3461
ΔE00 9.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#513B71 #5B713B
analogous
#3B4071 #513B71 #6C3B71
triadic
#513B71 #71513B #3B7151
tetradic
#513B71 #713B40 #5B713B #3B716C
square
#513B71 #713B40 #5B713B #3B716C
split-complementary
#513B71 #716C3B #40713B
monochromatic
#171121 #342649 #513B71 #6E5099 #8D71B5
Accessibility & contrast
On white
9.49
#513B71 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#513B71 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #513B71
9.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##513B71 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##513B71 | 1.00 | 9.49 | 2.21 | 9.49 |
| #FFFFFF | 9.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2C4573
Deuteranopia (green-blind)
#314570
Tritanopia (blue-blind)
#4B4450
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #513b71; /* rgb */ color: rgb(81, 59, 113); /* oklch */ color: oklch(40.2% 0.091 301.2);
Tailwind
colors: {
custom: {
50: '#83719a',
500: '#513b71',
950: '#000000',
},
}SCSS
$custom: #513b71; $custom-light: #83719a; $custom-dark: #000000;
JSON
{
"hex": "#513b71",
"rgb": {
"r": 81,
"g": 59,
"b": 113
},
"hsl": {
"h": 264.444,
"s": 31.395,
"l": 33.725
},
"oklch": {
"l": 0.40196,
"c": 0.09091,
"h": 301.2
},
"luminance": 0.0607
}Semantic roles & 50–950 ramp
primary
#513B71
secondary
#899F69
accent
#C8609D
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0B070E
muted
#7C7A7E