#4E318E#4E318E
#4E318E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.146 H 293.0°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).
Color values
| HEX | #4E318E |
|---|---|
| RGB | rgb(78, 49, 142) |
| HSL | hsl(259, 49%, 37%) |
| HSV | hsv(259, 65%, 56%) |
| CMYK | cmyk(45.1%, 65.5%, 0%, 44.3%) |
| CIE-LAB | lab(28.82, 35.72, -47.15) |
| CIE-LCH | lch(28.82, 59.15, 307.15°) |
| OKLab | oklab(40.18% 0.0572 -0.1347) |
| OKLCH | oklch(40.18% 0.146 293) |
| XYZ | xyz(9.1213, 5.7691, 26.2189) |
| Luminance | 0.0577 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.19
Rebeccapurple
#663399
ΔE00 4.67
Blueberry
#464196
ΔE00 5.51
Ocean Blue
#4F42B5
ΔE00 7.45
Indigo Blue
#3A18B1
ΔE00 7.75
Indigo
#4B0082
ΔE00 8.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E318E #718E31
analogous
#31428E #4E318E #7D318E
triadic
#4E318E #8E4E31 #318E4E
tetradic
#4E318E #8E3142 #718E31 #318E7D
square
#4E318E #8E3142 #718E31 #318E7D
split-complementary
#4E318E #8E7D31 #428E31
monochromatic
#1C1233 #352161 #4E318E #6741BB #8B6DCD
Accessibility & contrast
On white
9.75
#4E318E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#4E318E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E318E
9.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E318E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E318E | 1.00 | 9.75 | 2.15 | 9.75 |
| #FFFFFF | 9.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#3C475B
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #4e318e; /* rgb */ color: rgb(78, 49, 142); /* oklch */ color: oklch(40.2% 0.146 293.0);
Tailwind
colors: {
custom: {
50: '#856bb0',
500: '#4e318e',
950: '#000000',
},
}SCSS
$custom: #4e318e; $custom-light: #856bb0; $custom-dark: #000000;
JSON
{
"hex": "#4e318e",
"rgb": {
"r": 78,
"g": 49,
"b": 142
},
"hsl": {
"h": 258.71,
"s": 48.691,
"l": 37.451
},
"oklch": {
"l": 0.40176,
"c": 0.14633,
"h": 293
},
"luminance": 0.05769
}Semantic roles & 50–950 ramp
primary
#4E318E
secondary
#9CB467
accent
#D850AE
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0710
muted
#7C7A7F