#513E8A#513E8A
#513E8A is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.4% C 0.122 H 291.9°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).
Color values
| HEX | #513E8A |
|---|---|
| RGB | rgb(81, 62, 138) |
| HSL | hsl(255, 38%, 39%) |
| HSV | hsv(255, 55%, 54%) |
| CMYK | cmyk(41.3%, 55.1%, 0%, 45.9%) |
| CIE-LAB | lab(31.87, 27.32, -39.74) |
| CIE-LCH | lch(31.87, 48.23, 304.51°) |
| OKLab | oklab(42.4% 0.0454 -0.1128) |
| OKLCH | oklch(42.4% 0.122 291.9) |
| XYZ | xyz(9.7022, 7.0293, 24.8854) |
| Luminance | 0.0703 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 2.03
Blueberry
#464196
ΔE00 3.77
Rebeccapurple
#663399
ΔE00 6.03
Twilight
#4E518B
ΔE00 7.00
Ocean Blue
#4F42B5
ΔE00 7.30
Dusk
#4E5481
ΔE00 9.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#513E8A #778A3E
analogous
#3E518A #513E8A #773E8A
triadic
#513E8A #8A513E #3E8A51
tetradic
#513E8A #8A3E51 #778A3E #3E8A77
square
#513E8A #8A3E51 #778A3E #3E8A77
split-complementary
#513E8A #8A773E #518A3E
monochromatic
#1F1836 #382B60 #513E8A #6B53B2 #8F7EC5
Accessibility & contrast
On white
8.73
#513E8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#513E8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #513E8A
8.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##513E8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##513E8A | 1.00 | 8.73 | 2.41 | 8.73 |
| #FFFFFF | 8.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B4C8D
Deuteranopia (green-blind)
#1F4988
Tritanopia (blue-blind)
#424E5E
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #513e8a; /* rgb */ color: rgb(81, 62, 138); /* oklch */ color: oklch(42.4% 0.122 291.9);
Tailwind
colors: {
custom: {
50: '#8574ad',
500: '#513e8a',
950: '#000000',
},
}SCSS
$custom: #513e8a; $custom-light: #8574ad; $custom-dark: #000000;
JSON
{
"hex": "#513e8a",
"rgb": {
"r": 81,
"g": 62,
"b": 138
},
"hsl": {
"h": 255,
"s": 38,
"l": 39.216
},
"oklch": {
"l": 0.42398,
"c": 0.12159,
"h": 291.9
},
"luminance": 0.0703
}Semantic roles & 50–950 ramp
primary
#513E8A
secondary
#A0AF75
accent
#CE5AB1
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0B0810
muted
#7C7B7F