#513F78#513F78
#513F78 is a dark, moderate violet. Relative luminance 0.067; OKLCH L 41.4% C 0.094 H 296.6°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).
Color values
| HEX | #513F78 |
|---|---|
| RGB | rgb(81, 63, 120) |
| HSL | hsl(259, 31%, 36%) |
| HSV | hsv(259, 48%, 47%) |
| CMYK | cmyk(32.5%, 47.5%, 0%, 52.9%) |
| CIE-LAB | lab(31.02, 21.45, -29.90) |
| CIE-LCH | lch(31.02, 36.80, 305.65°) |
| OKLab | oklab(41.4% 0.0421 -0.084) |
| OKLCH | oklch(41.4% 0.094 296.6) |
| XYZ | xyz(8.5602, 6.6603, 18.6002) |
| Luminance | 0.0666 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.32
Blueberry
#464196
ΔE00 7.25
Twilight
#4E518B
ΔE00 7.37
Dusk
#4E5481
ΔE00 8.33
Rebeccapurple
#663399
ΔE00 8.62
Royal Purple
#7851A9
ΔE00 11.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#513F78 #66783F
analogous
#3F4978 #513F78 #6D3F78
triadic
#513F78 #78513F #3F7851
tetradic
#513F78 #783F49 #66783F #3F786D
square
#513F78 #783F49 #66783F #3F786D
split-complementary
#513F78 #786D3F #49783F
monochromatic
#1B1528 #362A50 #513F78 #6C54A0 #8D79B9
Accessibility & contrast
On white
9.01
#513F78 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#513F78 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #513F78
9.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##513F78 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##513F78 | 1.00 | 9.01 | 2.33 | 9.01 |
| #FFFFFF | 9.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D497A
Deuteranopia (green-blind)
#314877
Tritanopia (blue-blind)
#494955
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #513f78; /* rgb */ color: rgb(81, 63, 120); /* oklch */ color: oklch(41.4% 0.094 296.6);
Tailwind
colors: {
custom: {
50: '#84749f',
500: '#513f78',
950: '#000000',
},
}SCSS
$custom: #513f78; $custom-light: #84749f; $custom-dark: #000000;
JSON
{
"hex": "#513f78",
"rgb": {
"r": 81,
"g": 63,
"b": 120
},
"hsl": {
"h": 258.947,
"s": 31.148,
"l": 35.882
},
"oklch": {
"l": 0.41403,
"c": 0.09398,
"h": 296.6
},
"luminance": 0.0666
}Semantic roles & 50–950 ramp
primary
#513F78
secondary
#93A370
accent
#C760A7
background
#F8F7F9
surface
#EFEDF2
border
#CAC8CC
text
#0B080E
muted
#7C7B7E