#4E397F#4E397F
#4E397F is a dark, moderate violet. Relative luminance 0.061; OKLCH L 40.4% C 0.114 H 294.6°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).
Color values
| HEX | #4E397F |
|---|---|
| RGB | rgb(78, 57, 127) |
| HSL | hsl(258, 38%, 36%) |
| HSV | hsv(258, 55%, 50%) |
| CMYK | cmyk(38.6%, 55.1%, 0%, 50.2%) |
| CIE-LAB | lab(29.61, 26.43, -36.56) |
| CIE-LCH | lch(29.61, 45.11, 305.87°) |
| OKLab | oklab(40.41% 0.0474 -0.1036) |
| OKLCH | oklch(40.41% 0.114 294.6) |
| XYZ | xyz(8.4348, 6.0781, 20.8033) |
| Luminance | 0.0608 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.28
Blueberry
#464196
ΔE00 5.55
Rebeccapurple
#663399
ΔE00 6.65
Twilight
#4E518B
ΔE00 8.34
Ocean Blue
#4F42B5
ΔE00 9.35
Dusk
#4E5481
ΔE00 9.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E397F #6A7F39
analogous
#39477F #4E397F #71397F
triadic
#4E397F #7F4E39 #397F4E
tetradic
#4E397F #7F3947 #6A7F39 #397F71
square
#4E397F #7F3947 #6A7F39 #397F71
split-complementary
#4E397F #7F7139 #477F39
monochromatic
#1A132B #342655 #4E397F #684CA9 #8A72C0
Accessibility & contrast
On white
9.48
#4E397F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#4E397F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E397F
9.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E397F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E397F | 1.00 | 9.48 | 2.22 | 9.48 |
| #FFFFFF | 9.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B4681
Deuteranopia (green-blind)
#20457D
Tritanopia (blue-blind)
#424756
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #4e397f; /* rgb */ color: rgb(78, 57, 127); /* oklch */ color: oklch(40.4% 0.114 294.6);
Tailwind
colors: {
custom: {
50: '#8370a4',
500: '#4e397f',
950: '#000000',
},
}SCSS
$custom: #4e397f; $custom-light: #8370a4; $custom-dark: #000000;
JSON
{
"hex": "#4e397f",
"rgb": {
"r": 78,
"g": 57,
"b": 127
},
"hsl": {
"h": 258,
"s": 38.043,
"l": 36.078
},
"oklch": {
"l": 0.40412,
"c": 0.1139,
"h": 294.6
},
"luminance": 0.06078
}Semantic roles & 50–950 ramp
primary
#4E397F
secondary
#96A96B
accent
#CE5AAB
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F