#4D166F#4D166F
#4D166F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.145 H 308.5°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).
Color values
| HEX | #4D166F |
|---|---|
| RGB | rgb(77, 22, 111) |
| HSL | hsl(277, 67%, 26%) |
| HSV | hsv(277, 80%, 44%) |
| CMYK | cmyk(30.6%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(21.21, 41.08, -39.93) |
| CIE-LCH | lch(21.21, 57.29, 315.81°) |
| OKLab | oklab(33.92% 0.0902 -0.1134) |
| OKLCH | oklch(33.92% 0.145 308.5) |
| XYZ | xyz(6.2161, 3.2994, 15.3452) |
| Luminance | 0.0330 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.79
Indigo
#4B0082
ΔE00 4.52
Indigo (survey)
#380282
ΔE00 6.43
Plum Purple
#4E0550
ΔE00 7.00
Deep Violet
#490648
ΔE00 8.40
Darkish Purple
#751973
ΔE00 8.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D166F #386F16
analogous
#21166F #4D166F #6F1664
triadic
#4D166F #6F4D16 #166F4D
tetradic
#4D166F #6F2116 #386F16 #16646F
square
#4D166F #6F2116 #386F16 #16646F
split-complementary
#4D166F #646F16 #166F21
monochromatic
#12051A #2A0C3C #4D166F #7020A2 #942BD5
Accessibility & contrast
On white
12.65
#4D166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#4D166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D166F
12.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D166F | 1.00 | 12.65 | 1.66 | 12.65 |
| #FFFFFF | 12.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#482C42
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #4d166f; /* rgb */ color: rgb(77, 22, 111); /* oklch */ color: oklch(33.9% 0.145 308.5);
Tailwind
colors: {
custom: {
50: '#835a99',
500: '#4d166f',
950: '#000000',
},
}SCSS
$custom: #4d166f; $custom-light: #835a99; $custom-dark: #000000;
JSON
{
"hex": "#4d166f",
"rgb": {
"r": 77,
"g": 22,
"b": 111
},
"hsl": {
"h": 277.079,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.33925,
"c": 0.14492,
"h": 308.5
},
"luminance": 0.03299
}Semantic roles & 50–950 ramp
primary
#4D166F
secondary
#64A53C
accent
#EA3E80
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E