#4E1B7A#4E1B7A
#4E1B7A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.151 H 303.9°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).
Color values
| HEX | #4E1B7A |
|---|---|
| RGB | rgb(78, 27, 122) |
| HSL | hsl(272, 64%, 29%) |
| HSV | hsv(272, 78%, 48%) |
| CMYK | cmyk(36.1%, 77.9%, 0%, 52.2%) |
| CIE-LAB | lab(23.03, 41.81, -44.02) |
| CIE-LCH | lch(23.03, 60.72, 313.53°) |
| OKLab | oklab(35.53% 0.0843 -0.1254) |
| OKLCH | oklch(35.53% 0.151 303.9) |
| XYZ | xyz(7.0459, 3.8087, 18.7725) |
| Luminance | 0.0381 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.80
Royal Purple (survey)
#4B006E
ΔE00 3.98
Indigo (survey)
#380282
ΔE00 5.67
Rebeccapurple
#663399
ΔE00 7.55
Midnight Blue
#191970
ΔE00 8.69
Plum Purple
#4E0550
ΔE00 9.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E1B7A #477A1B
analogous
#1F1B7A #4E1B7A #7A1B77
triadic
#4E1B7A #7A4E1B #1B7A4E
tetradic
#4E1B7A #7A1F1B #477A1B #1B777A
square
#4E1B7A #7A1F1B #477A1B #1B777A
split-complementary
#4E1B7A #777A1B #1B7A1F
monochromatic
#100619 #2E1048 #4E1B7A #6E26AC #8D3CD4
Accessibility & contrast
On white
11.92
#4E1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#4E1B7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E1B7A
11.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E1B7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E1B7A | 1.00 | 11.92 | 1.76 | 11.92 |
| #FFFFFF | 11.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#453349
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #4e1b7a; /* rgb */ color: rgb(78, 27, 122); /* oklch */ color: oklch(35.5% 0.151 303.9);
Tailwind
colors: {
custom: {
50: '#845da1',
500: '#4e1b7a',
950: '#000000',
},
}SCSS
$custom: #4e1b7a; $custom-light: #845da1; $custom-dark: #000000;
JSON
{
"hex": "#4e1b7a",
"rgb": {
"r": 78,
"g": 27,
"b": 122
},
"hsl": {
"h": 272.211,
"s": 63.758,
"l": 29.216
},
"oklch": {
"l": 0.35528,
"c": 0.15114,
"h": 303.9
},
"luminance": 0.03809
}Semantic roles & 50–950 ramp
primary
#4E1B7A
secondary
#74AE43
accent
#E7418E
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F