#4E158F#4E158F
#4E158F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.9% C 0.179 H 297.5°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).
Color values
| HEX | #4E158F |
|---|---|
| RGB | rgb(78, 21, 143) |
| HSL | hsl(268, 74%, 32%) |
| HSV | hsv(268, 85%, 56%) |
| CMYK | cmyk(45.5%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(24.13, 49.46, -55.44) |
| CIE-LCH | lch(24.13, 74.30, 311.74°) |
| OKLab | oklab(36.88% 0.0827 -0.1589) |
| OKLCH | oklch(36.88% 0.179 297.5) |
| XYZ | xyz(8.3667, 4.1390, 26.3394) |
| Luminance | 0.0414 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.07
Indigo (survey)
#380282
ΔE00 4.46
Indigo Blue
#3A18B1
ΔE00 5.75
Royal Purple (survey)
#4B006E
ΔE00 5.97
Ultramarine
#2000B1
ΔE00 7.10
Rebeccapurple
#663399
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E158F #568F15
analogous
#15198F #4E158F #8B158F
triadic
#4E158F #8F4E15 #158F4E
tetradic
#4E158F #8F1519 #568F15 #158F8B
square
#4E158F #8F1519 #568F15 #158F8B
split-complementary
#4E158F #8F8B15 #198F15
monochromatic
#140524 #310D5A #4E158F #6B1DC4 #8A3CE2
Accessibility & contrast
On white
11.49
#4E158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#4E158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E158F
11.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E158F | 1.00 | 11.49 | 1.83 | 11.49 |
| #FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#3D3954
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #4e158f; /* rgb */ color: rgb(78, 21, 143); /* oklch */ color: oklch(36.9% 0.179 297.5);
Tailwind
colors: {
custom: {
50: '#875cb1',
500: '#4e158f',
950: '#000000',
},
}SCSS
$custom: #4e158f; $custom-light: #875cb1; $custom-dark: #000000;
JSON
{
"hex": "#4e158f",
"rgb": {
"r": 78,
"g": 21,
"b": 143
},
"hsl": {
"h": 268.033,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.36882,
"c": 0.1791,
"h": 297.5
},
"luminance": 0.04139
}Semantic roles & 50–950 ramp
primary
#4E158F
secondary
#84C23E
accent
#F1379A
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980