#4E387F#4E387F
#4E387F is a dark, moderate violet. Relative luminance 0.060; OKLCH L 40.2% C 0.116 H 295.0°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).
Color values
| HEX | #4E387F |
|---|---|
| RGB | rgb(78, 56, 127) |
| HSL | hsl(259, 39%, 36%) |
| HSV | hsv(259, 56%, 50%) |
| CMYK | cmyk(38.6%, 55.9%, 0%, 50.2%) |
| CIE-LAB | lab(29.36, 27.06, -36.95) |
| CIE-LCH | lch(29.36, 45.80, 306.22°) |
| OKLab | oklab(40.23% 0.0488 -0.1047) |
| OKLCH | oklch(40.23% 0.116 295) |
| XYZ | xyz(8.3858, 5.9802, 20.7870) |
| Luminance | 0.0598 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.40
Blueberry
#464196
ΔE00 5.66
Rebeccapurple
#663399
ΔE00 6.48
Twilight
#4E518B
ΔE00 8.64
Ocean Blue
#4F42B5
ΔE00 9.37
Dusk
#4E5481
ΔE00 10.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E387F #697F38
analogous
#38457F #4E387F #71387F
triadic
#4E387F #7F4E38 #387F4E
tetradic
#4E387F #7F3845 #697F38 #387F71
square
#4E387F #7F3845 #697F38 #387F71
split-complementary
#4E387F #7F7138 #457F38
monochromatic
#1A132A #342555 #4E387F #684BA9 #8A71C0
Accessibility & contrast
On white
9.56
#4E387F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#4E387F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E387F
9.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E387F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E387F | 1.00 | 9.56 | 2.20 | 9.56 |
| #FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#194681
Deuteranopia (green-blind)
#1F447D
Tritanopia (blue-blind)
#424756
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #4e387f; /* rgb */ color: rgb(78, 56, 127); /* oklch */ color: oklch(40.2% 0.116 295.0);
Tailwind
colors: {
custom: {
50: '#836fa4',
500: '#4e387f',
950: '#000000',
},
}SCSS
$custom: #4e387f; $custom-light: #836fa4; $custom-dark: #000000;
JSON
{
"hex": "#4e387f",
"rgb": {
"r": 78,
"g": 56,
"b": 127
},
"hsl": {
"h": 258.592,
"s": 38.798,
"l": 35.882
},
"oklch": {
"l": 0.40229,
"c": 0.11552,
"h": 295
},
"luminance": 0.0598
}Semantic roles & 50–950 ramp
primary
#4E387F
secondary
#96A969
accent
#CF59AA
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F