#4E1B7F#4E1B7F
#4E1B7F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.157 H 302.1°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).
Color values
| HEX | #4E1B7F |
|---|---|
| RGB | rgb(78, 27, 127) |
| HSL | hsl(271, 65%, 30%) |
| HSV | hsv(271, 79%, 50%) |
| CMYK | cmyk(38.6%, 78.7%, 0%, 50.2%) |
| CIE-LAB | lab(23.46, 43.07, -46.50) |
| CIE-LCH | lch(23.46, 63.38, 312.81°) |
| OKLab | oklab(35.96% 0.0831 -0.1327) |
| OKLCH | oklch(35.96% 0.157 302.1) |
| XYZ | xyz(7.3637, 3.9358, 20.4463) |
| Luminance | 0.0394 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.43
Royal Purple (survey)
#4B006E
ΔE00 4.43
Indigo (survey)
#380282
ΔE00 5.25
Rebeccapurple
#663399
ΔE00 7.16
Indigo Blue
#3A18B1
ΔE00 8.32
Midnight Blue
#191970
ΔE00 8.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E1B7F #4C7F1B
analogous
#1C1B7F #4E1B7F #7F1B7E
triadic
#4E1B7F #7F4E1B #1B7F4E
tetradic
#4E1B7F #7F1C1B #4C7F1B #1B7E7F
square
#4E1B7F #7F1C1B #4C7F1B #1B7E7F
split-complementary
#4E1B7F #7E7F1B #1B7F1C
monochromatic
#10061A #2F104D #4E1B7F #6D26B1 #8C3ED6
Accessibility & contrast
On white
11.75
#4E1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#4E1B7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E1B7F
11.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E1B7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E1B7F | 1.00 | 11.75 | 1.79 | 11.75 |
| #FFFFFF | 11.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#43354C
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4e1b7f; /* rgb */ color: rgb(78, 27, 127); /* oklch */ color: oklch(36.0% 0.157 302.1);
Tailwind
colors: {
custom: {
50: '#855da5',
500: '#4e1b7f',
950: '#000000',
},
}SCSS
$custom: #4e1b7f; $custom-light: #855da5; $custom-dark: #000000;
JSON
{
"hex": "#4e1b7f",
"rgb": {
"r": 78,
"g": 27,
"b": 127
},
"hsl": {
"h": 270.6,
"s": 64.935,
"l": 30.196
},
"oklch": {
"l": 0.35963,
"c": 0.15656,
"h": 302.1
},
"luminance": 0.03936
}Semantic roles & 50–950 ramp
primary
#4E1B7F
secondary
#7AB343
accent
#E84092
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F