#4E157F#4E157F
#4E157F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.163 H 302.8°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).
Color values
| HEX | #4E157F |
|---|---|
| RGB | rgb(78, 21, 127) |
| HSL | hsl(272, 72%, 29%) |
| HSV | hsv(272, 83%, 50%) |
| CMYK | cmyk(38.6%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(22.61, 45.52, -47.88) |
| CIE-LCH | lch(22.61, 66.06, 313.55°) |
| OKLab | oklab(35.37% 0.0882 -0.1367) |
| OKLCH | oklch(35.37% 0.163 302.8) |
| XYZ | xyz(7.2399, 3.6883, 20.4051) |
| Luminance | 0.0369 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.48
Royal Purple (survey)
#4B006E
ΔE00 3.73
Indigo (survey)
#380282
ΔE00 4.63
Rebeccapurple
#663399
ΔE00 7.81
Indigo Blue
#3A18B1
ΔE00 8.29
Midnight Blue
#191970
ΔE00 8.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E157F #467F15
analogous
#19157F #4E157F #7F157B
triadic
#4E157F #7F4E15 #157F4E
tetradic
#4E157F #7F1915 #467F15 #157B7F
square
#4E157F #7F1915 #467F15 #157B7F
split-complementary
#4E157F #7B7F15 #157F19
monochromatic
#10041A #2E0C4A #4E157F #6E1EB4 #8E31DD
Accessibility & contrast
On white
12.09
#4E157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#4E157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E157F
12.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E157F | 1.00 | 12.09 | 1.74 | 12.09 |
| #FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#44324B
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4e157f; /* rgb */ color: rgb(78, 21, 127); /* oklch */ color: oklch(35.4% 0.163 302.8);
Tailwind
colors: {
custom: {
50: '#855ba5',
500: '#4e157f',
950: '#000000',
},
}SCSS
$custom: #4e157f; $custom-light: #855ba5; $custom-dark: #000000;
JSON
{
"hex": "#4e157f",
"rgb": {
"r": 78,
"g": 21,
"b": 127
},
"hsl": {
"h": 272.264,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.35373,
"c": 0.16269,
"h": 302.8
},
"luminance": 0.03688
}Semantic roles & 50–950 ramp
primary
#4E157F
secondary
#73B43C
accent
#EE398D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F