#4E147E#4E147E
#4E147E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.163 H 303.3°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).
Color values
| HEX | #4E147E |
|---|---|
| RGB | rgb(78, 20, 126) |
| HSL | hsl(273, 73%, 29%) |
| HSV | hsv(273, 84%, 49%) |
| CMYK | cmyk(38.1%, 84.1%, 0%, 50.6%) |
| CIE-LAB | lab(22.40, 45.64, -47.60) |
| CIE-LCH | lch(22.40, 65.94, 313.80°) |
| OKLab | oklab(35.19% 0.0893 -0.1359) |
| OKLCH | oklch(35.19% 0.163 303.3) |
| XYZ | xyz(7.1570, 3.6264, 20.0575) |
| Luminance | 0.0363 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.41
Royal Purple (survey)
#4B006E
ΔE00 3.50
Indigo (survey)
#380282
ΔE00 4.62
Rebeccapurple
#663399
ΔE00 7.98
Indigo Blue
#3A18B1
ΔE00 8.46
Midnight Blue
#191970
ΔE00 8.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E147E #447E14
analogous
#19147E #4E147E #7E1479
triadic
#4E147E #7E4E14 #147E4E
tetradic
#4E147E #7E1914 #447E14 #14797E
square
#4E147E #7E1914 #447E14 #14797E
split-complementary
#4E147E #797E14 #147E19
monochromatic
#10041A #2D0C49 #4E147E #6F1CB3 #8E2EDE
Accessibility & contrast
On white
12.17
#4E147E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#4E147E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E147E
12.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E147E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E147E | 1.00 | 12.17 | 1.73 | 12.17 |
| #FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#44324A
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4e147e; /* rgb */ color: rgb(78, 20, 126); /* oklch */ color: oklch(35.2% 0.163 303.3);
Tailwind
colors: {
custom: {
50: '#855aa4',
500: '#4e147e',
950: '#000000',
},
}SCSS
$custom: #4e147e; $custom-light: #855aa4; $custom-dark: #000000;
JSON
{
"hex": "#4e147e",
"rgb": {
"r": 78,
"g": 20,
"b": 126
},
"hsl": {
"h": 272.83,
"s": 72.603,
"l": 28.627
},
"oklch": {
"l": 0.35194,
"c": 0.1626,
"h": 303.3
},
"luminance": 0.03626
}Semantic roles & 50–950 ramp
primary
#4E147E
secondary
#71B33A
accent
#EF388B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F