#4E1F7C#4E1F7C
#4E1F7C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.149 H 302.5°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).
Color values
| HEX | #4E1F7C |
|---|---|
| RGB | rgb(78, 31, 124) |
| HSL | hsl(270, 60%, 30%) |
| HSV | hsv(270, 75%, 49%) |
| CMYK | cmyk(37.1%, 75%, 0%, 51.4%) |
| CIE-LAB | lab(23.85, 40.46, -43.96) |
| CIE-LCH | lch(23.85, 59.74, 312.63°) |
| OKLab | oklab(36.16% 0.0799 -0.1252) |
| OKLCH | oklch(36.16% 0.149 302.5) |
| XYZ | xyz(7.2691, 4.0549, 19.4646) |
| Luminance | 0.0406 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.36
Royal Purple (survey)
#4B006E
ΔE00 4.81
Indigo (survey)
#380282
ΔE00 6.04
Rebeccapurple
#663399
ΔE00 6.96
Midnight Blue
#191970
ΔE00 8.61
Darkslateblue
#483D8B
ΔE00 8.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E1F7C #4D7C1F
analogous
#201F7C #4E1F7C #7C1F7B
triadic
#4E1F7C #7C4E1F #1F7C4E
tetradic
#4E1F7C #7C201F #4D7C1F #1F7B7C
square
#4E1F7C #7C201F #4D7C1F #1F7B7C
split-complementary
#4E1F7C #7B7C1F #1F7C20
monochromatic
#10071A #2F134B #4E1F7C #6D2BAD #8B45D0
Accessibility & contrast
On white
11.60
#4E1F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#4E1F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E1F7C
11.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E1F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E1F7C | 1.00 | 11.60 | 1.81 | 11.60 |
| #FFFFFF | 11.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#44364B
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #4e1f7c; /* rgb */ color: rgb(78, 31, 124); /* oklch */ color: oklch(36.2% 0.149 302.5);
Tailwind
colors: {
custom: {
50: '#845fa3',
500: '#4e1f7c',
950: '#000000',
},
}SCSS
$custom: #4e1f7c; $custom-light: #845fa3; $custom-dark: #000000;
JSON
{
"hex": "#4e1f7c",
"rgb": {
"r": 78,
"g": 31,
"b": 124
},
"hsl": {
"h": 270.323,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.36162,
"c": 0.14854,
"h": 302.5
},
"luminance": 0.04055
}Semantic roles & 50–950 ramp
primary
#4E1F7C
secondary
#7BAF48
accent
#E34593
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F