#4E1D7D#4E1D7D
#4E1D7D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.152 H 302.5°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).
Color values
| HEX | #4E1D7D |
|---|---|
| RGB | rgb(78, 29, 125) |
| HSL | hsl(271, 62%, 30%) |
| HSV | hsv(271, 77%, 49%) |
| CMYK | cmyk(37.6%, 76.8%, 0%, 51%) |
| CIE-LAB | lab(23.60, 41.66, -45.00) |
| CIE-LCH | lch(23.60, 61.32, 312.80°) |
| OKLab | oklab(36.01% 0.0817 -0.1283) |
| OKLCH | oklch(36.01% 0.152 302.5) |
| XYZ | xyz(7.2820, 3.9791, 19.7825) |
| Luminance | 0.0398 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.91
Royal Purple (survey)
#4B006E
ΔE00 4.54
Indigo (survey)
#380282
ΔE00 5.66
Rebeccapurple
#663399
ΔE00 7.09
Midnight Blue
#191970
ΔE00 8.58
Indigo Blue
#3A18B1
ΔE00 8.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E1D7D #4C7D1D
analogous
#1E1D7D #4E1D7D #7D1D7C
triadic
#4E1D7D #7D4E1D #1D7D4E
tetradic
#4E1D7D #7D1E1D #4C7D1D #1D7C7D
square
#4E1D7D #7D1E1D #4C7D1D #1D7C7D
split-complementary
#4E1D7D #7C7D1D #1D7D1E
monochromatic
#10061A #2F114B #4E1D7D #6D29AF #8C41D3
Accessibility & contrast
On white
11.69
#4E1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#4E1D7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E1D7D
11.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E1D7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E1D7D | 1.00 | 11.69 | 1.80 | 11.69 |
| #FFFFFF | 11.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#44354B
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4e1d7d; /* rgb */ color: rgb(78, 29, 125); /* oklch */ color: oklch(36.0% 0.152 302.5);
Tailwind
colors: {
custom: {
50: '#845ea3',
500: '#4e1d7d',
950: '#000000',
},
}SCSS
$custom: #4e1d7d; $custom-light: #845ea3; $custom-dark: #000000;
JSON
{
"hex": "#4e1d7d",
"rgb": {
"r": 78,
"g": 29,
"b": 125
},
"hsl": {
"h": 270.625,
"s": 62.338,
"l": 30.196
},
"oklch": {
"l": 0.36011,
"c": 0.15208,
"h": 302.5
},
"luminance": 0.03979
}Semantic roles & 50–950 ramp
primary
#4E1D7D
secondary
#7AB145
accent
#E54292
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F