#4E1786#4E1786
#4E1786 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.168 H 300.2°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).
Color values
| HEX | #4E1786 |
|---|---|
| RGB | rgb(78, 23, 134) |
| HSL | hsl(270, 71%, 31%) |
| HSV | hsv(270, 83%, 53%) |
| CMYK | cmyk(41.8%, 82.8%, 0%, 47.5%) |
| CIE-LAB | lab(23.52, 46.48, -50.81) |
| CIE-LCH | lch(23.52, 68.87, 312.45°) |
| OKLab | oklab(36.2% 0.0844 -0.1453) |
| OKLCH | oklch(36.2% 0.168 300.2) |
| XYZ | xyz(7.7503, 3.9536, 22.9044) |
| Luminance | 0.0395 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.69
Indigo (survey)
#380282
ΔE00 4.51
Royal Purple (survey)
#4B006E
ΔE00 4.84
Indigo Blue
#3A18B1
ΔE00 7.12
Rebeccapurple
#663399
ΔE00 7.22
Royal
#0C1793
ΔE00 8.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E1786 #4F8617
analogous
#171786 #4E1786 #851786
triadic
#4E1786 #864E17 #17864E
tetradic
#4E1786 #861717 #4F8617 #178685
square
#4E1786 #861717 #4F8617 #178685
split-complementary
#4E1786 #868517 #178617
monochromatic
#11051E #300E52 #4E1786 #6C20BA #8B3ADD
Accessibility & contrast
On white
11.73
#4E1786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#4E1786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E1786
11.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E1786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E1786 | 1.00 | 11.73 | 1.79 | 11.73 |
| #FFFFFF | 11.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003784
Tritanopia (blue-blind)
#41364F
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4e1786; /* rgb */ color: rgb(78, 23, 134); /* oklch */ color: oklch(36.2% 0.168 300.2);
Tailwind
colors: {
custom: {
50: '#865caa',
500: '#4e1786',
950: '#000000',
},
}SCSS
$custom: #4e1786; $custom-light: #865caa; $custom-dark: #000000;
JSON
{
"hex": "#4e1786",
"rgb": {
"r": 78,
"g": 23,
"b": 134
},
"hsl": {
"h": 269.73,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.36199,
"c": 0.16807,
"h": 300.2
},
"luminance": 0.03954
}Semantic roles & 50–950 ramp
primary
#4E1786
secondary
#7DBA3F
accent
#ED3A95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F