#4D167F#4D167F
#4D167F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.162 H 302.1°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).
Color values
| HEX | #4D167F |
|---|---|
| RGB | rgb(77, 22, 127) |
| HSL | hsl(271, 70%, 29%) |
| HSV | hsv(271, 83%, 50%) |
| CMYK | cmyk(39.4%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(22.60, 44.97, -47.91) |
| CIE-LCH | lch(22.60, 65.71, 313.19°) |
| OKLab | oklab(35.33% 0.0859 -0.1368) |
| OKLCH | oklch(35.33% 0.162 302.1) |
| XYZ | xyz(7.1773, 3.6839, 20.4075) |
| Luminance | 0.0368 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.57
Royal Purple (survey)
#4B006E
ΔE00 3.85
Indigo (survey)
#380282
ΔE00 4.56
Rebeccapurple
#663399
ΔE00 7.80
Indigo Blue
#3A18B1
ΔE00 8.19
Midnight Blue
#191970
ΔE00 8.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D167F #487F16
analogous
#19167F #4D167F #7F167D
triadic
#4D167F #7F4D16 #167F4D
tetradic
#4D167F #7F1916 #487F16 #167D7F
square
#4D167F #7F1916 #487F16 #167D7F
split-complementary
#4D167F #7D7F16 #167F19
monochromatic
#10051A #2D0D4B #4D167F #6D1FB3 #8C34DC
Accessibility & contrast
On white
12.09
#4D167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#4D167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D167F
12.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D167F | 1.00 | 12.09 | 1.74 | 12.09 |
| #FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#42334B
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4d167f; /* rgb */ color: rgb(77, 22, 127); /* oklch */ color: oklch(35.3% 0.162 302.1);
Tailwind
colors: {
custom: {
50: '#845ba5',
500: '#4d167f',
950: '#000000',
},
}SCSS
$custom: #4d167f; $custom-light: #845ba5; $custom-dark: #000000;
JSON
{
"hex": "#4d167f",
"rgb": {
"r": 77,
"g": 22,
"b": 127
},
"hsl": {
"h": 271.429,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.35331,
"c": 0.16155,
"h": 302.1
},
"luminance": 0.03684
}Semantic roles & 50–950 ramp
primary
#4D167F
secondary
#76B43D
accent
#ED3B90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F