#4E1F9D#4E1F9D
#4E1F9D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.185 H 292.5°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).
Color values
| HEX | #4E1F9D |
|---|---|
| RGB | rgb(78, 31, 157) |
| HSL | hsl(262, 67%, 37%) |
| HSV | hsv(262, 80%, 62%) |
| CMYK | cmyk(50.3%, 80.3%, 0%, 38.4%) |
| CIE-LAB | lab(26.83, 49.17, -59.61) |
| CIE-LCH | lch(26.83, 77.28, 309.52°) |
| OKLab | oklab(39.17% 0.0709 -0.1712) |
| OKLCH | oklch(39.17% 0.185 292.5) |
| XYZ | xyz(9.7160, 5.0336, 32.3514) |
| Luminance | 0.0503 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.96
Indigo
#4B0082
ΔE00 5.72
Violet Blue
#510AC9
ΔE00 5.87
Rebeccapurple
#663399
ΔE00 6.16
Indigo (survey)
#380282
ΔE00 6.40
Ultramarine
#2000B1
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E1F9D #6E9D1F
analogous
#1F2F9D #4E1F9D #8D1F9D
triadic
#4E1F9D #9D4E1F #1F9D4E
tetradic
#4E1F9D #9D1F2F #6E9D1F #1F9D8D
square
#4E1F9D #9D1F2F #6E9D1F #1F9D8D
split-complementary
#4E1F9D #9D8D1F #2F9D1F
monochromatic
#1B0B37 #35156A #4E1F9D #6729D0 #8A58DE
Accessibility & contrast
On white
10.46
#4E1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#4E1F9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E1F9D
10.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E1F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E1F9D | 1.00 | 10.46 | 2.01 | 10.46 |
| #FFFFFF | 10.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#34435E
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #4e1f9d; /* rgb */ color: rgb(78, 31, 157); /* oklch */ color: oklch(39.2% 0.185 292.5);
Tailwind
colors: {
custom: {
50: '#8861bb',
500: '#4e1f9d',
950: '#000000',
},
}SCSS
$custom: #4e1f9d; $custom-light: #8861bb; $custom-dark: #000000;
JSON
{
"hex": "#4e1f9d",
"rgb": {
"r": 78,
"g": 31,
"b": 157
},
"hsl": {
"h": 262.381,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.39166,
"c": 0.18529,
"h": 292.5
},
"luminance": 0.05034
}Semantic roles & 50–950 ramp
primary
#4E1F9D
secondary
#9AC256
accent
#EA3EAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81