#4D166C#4D166C
#4D166C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.142 H 309.9°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).
Color values
| HEX | #4D166C |
|---|---|
| RGB | rgb(77, 22, 108) |
| HSL | hsl(278, 66%, 25%) |
| HSV | hsv(278, 80%, 42%) |
| CMYK | cmyk(28.7%, 79.6%, 0%, 57.6%) |
| CIE-LAB | lab(20.96, 40.37, -38.39) |
| CIE-LCH | lch(20.96, 55.71, 316.44°) |
| OKLab | oklab(33.67% 0.0909 -0.1088) |
| OKLCH | oklch(33.67% 0.142 309.9) |
| XYZ | xyz(6.0537, 3.2344, 14.4899) |
| Luminance | 0.0323 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.94
Indigo
#4B0082
ΔE00 5.05
Plum Purple
#4E0550
ΔE00 6.44
Indigo (survey)
#380282
ΔE00 6.92
Deep Violet
#490648
ΔE00 7.82
Darkish Purple
#751973
ΔE00 8.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D166C #356C16
analogous
#22166C #4D166C #6C1660
triadic
#4D166C #6C4D16 #166C4D
tetradic
#4D166C #6C2216 #356C16 #16606C
square
#4D166C #6C2216 #356C16 #16606C
split-complementary
#4D166C #606C16 #166C22
monochromatic
#120519 #290C39 #4D166C #71209F #952BD2
Accessibility & contrast
On white
12.75
#4D166C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#4D166C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D166C
12.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D166C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D166C | 1.00 | 12.75 | 1.65 | 12.75 |
| #FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00336A
Tritanopia (blue-blind)
#492B40
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #4d166c; /* rgb */ color: rgb(77, 22, 108); /* oklch */ color: oklch(33.7% 0.142 309.9);
Tailwind
colors: {
custom: {
50: '#835a97',
500: '#4d166c',
950: '#000000',
},
}SCSS
$custom: #4d166c; $custom-light: #835a97; $custom-dark: #000000;
JSON
{
"hex": "#4d166c",
"rgb": {
"r": 77,
"g": 22,
"b": 108
},
"hsl": {
"h": 278.372,
"s": 66.154,
"l": 25.49
},
"oklch": {
"l": 0.33674,
"c": 0.14181,
"h": 309.9
},
"luminance": 0.03234
}Semantic roles & 50–950 ramp
primary
#4D166C
secondary
#61A23C
accent
#E93F7C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E