#4E1F7F#4E1F7F
#4E1F7F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.152 H 301.4°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).
Color values
| HEX | #4E1F7F |
|---|---|
| RGB | rgb(78, 31, 127) |
| HSL | hsl(269, 61%, 31%) |
| HSV | hsv(269, 76%, 50%) |
| CMYK | cmyk(38.6%, 75.6%, 0%, 50.2%) |
| CIE-LAB | lab(24.10, 41.24, -45.45) |
| CIE-LCH | lch(24.10, 61.37, 312.22°) |
| OKLab | oklab(36.42% 0.0792 -0.1296) |
| OKLCH | oklch(36.42% 0.152 301.4) |
| XYZ | xyz(7.4617, 4.1319, 20.4790) |
| Luminance | 0.0413 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.18
Royal Purple (survey)
#4B006E
ΔE00 5.04
Indigo (survey)
#380282
ΔE00 5.80
Rebeccapurple
#663399
ΔE00 6.72
Indigo Blue
#3A18B1
ΔE00 8.42
Darkslateblue
#483D8B
ΔE00 8.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E1F7F #507F1F
analogous
#1F207F #4E1F7F #7E1F7F
triadic
#4E1F7F #7F4E1F #1F7F4E
tetradic
#4E1F7F #7F1F20 #507F1F #1F7F7E
square
#4E1F7F #7F1F20 #507F1F #1F7F7E
split-complementary
#4E1F7F #7F7E1F #207F1F
monochromatic
#12071D #30134E #4E1F7F #6C2BB0 #8B46D2
Accessibility & contrast
On white
11.50
#4E1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#4E1F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E1F7F
11.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E1F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E1F7F | 1.00 | 11.50 | 1.83 | 11.50 |
| #FFFFFF | 11.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#43374D
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #4e1f7f; /* rgb */ color: rgb(78, 31, 127); /* oklch */ color: oklch(36.4% 0.152 301.4);
Tailwind
colors: {
custom: {
50: '#845fa5',
500: '#4e1f7f',
950: '#000000',
},
}SCSS
$custom: #4e1f7f; $custom-light: #845fa5; $custom-dark: #000000;
JSON
{
"hex": "#4e1f7f",
"rgb": {
"r": 78,
"g": 31,
"b": 127
},
"hsl": {
"h": 269.375,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.36417,
"c": 0.15192,
"h": 301.4
},
"luminance": 0.04132
}Semantic roles & 50–950 ramp
primary
#4E1F7F
secondary
#7EB248
accent
#E44496
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F