#513582#513582
#513582 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.2% C 0.125 H 297.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).
Color values
| HEX | #513582 |
|---|---|
| RGB | rgb(81, 53, 130) |
| HSL | hsl(262, 42%, 36%) |
| HSV | hsv(262, 59%, 51%) |
| CMYK | cmyk(37.7%, 59.2%, 0%, 49%) |
| CIE-LAB | lab(29.18, 30.56, -39.11) |
| CIE-LCH | lch(29.18, 49.63, 308.01°) |
| OKLab | oklab(40.23% 0.0571 -0.1109) |
| OKLCH | oklch(40.23% 0.125 297.2) |
| XYZ | xyz(8.6947, 5.9071, 21.7969) |
| Luminance | 0.0591 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.02
Rebeccapurple
#663399
ΔE00 5.31
Blueberry
#464196
ΔE00 6.11
Ocean Blue
#4F42B5
ΔE00 9.15
Indigo
#4B0082
ΔE00 9.54
Twilight
#4E518B
ΔE00 9.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#513582 #668235
analogous
#353F82 #513582 #773582
triadic
#513582 #825135 #358251
tetradic
#513582 #82353F #668235 #358277
square
#513582 #82353F #668235 #358277
split-complementary
#513582 #827735 #3F8235
monochromatic
#1B122B #362357 #513582 #6C47AD #8D6EC4
Accessibility & contrast
On white
9.63
#513582 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#513582 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #513582
9.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##513582 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##513582 | 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)
#0E4585
Deuteranopia (green-blind)
#194480
Tritanopia (blue-blind)
#464556
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #513582; /* rgb */ color: rgb(81, 53, 130); /* oklch */ color: oklch(40.2% 0.125 297.2);
Tailwind
colors: {
custom: {
50: '#856da7',
500: '#513582',
950: '#000000',
},
}SCSS
$custom: #513582; $custom-light: #856da7; $custom-dark: #000000;
JSON
{
"hex": "#513582",
"rgb": {
"r": 81,
"g": 53,
"b": 130
},
"hsl": {
"h": 261.818,
"s": 42.077,
"l": 35.882
},
"oklch": {
"l": 0.40234,
"c": 0.12479,
"h": 297.2
},
"luminance": 0.05907
}Semantic roles & 50–950 ramp
primary
#513582
secondary
#93AC67
accent
#D256A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B070F
muted
#7C7A7F