#4C166C#4C166C
#4C166C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.141 H 309.2°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).
Color values
| HEX | #4C166C |
|---|---|
| RGB | rgb(76, 22, 108) |
| HSL | hsl(278, 66%, 25%) |
| HSV | hsv(278, 80%, 42%) |
| CMYK | cmyk(29.6%, 79.6%, 0%, 57.6%) |
| CIE-LAB | lab(20.80, 40.17, -38.65) |
| CIE-LCH | lch(20.80, 55.74, 316.10°) |
| OKLab | oklab(33.53% 0.0894 -0.1097) |
| OKLCH | oklch(33.53% 0.142 309.2) |
| XYZ | xyz(5.9736, 3.1931, 14.4861) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.90
Indigo
#4B0082
ΔE00 4.97
Plum Purple
#4E0550
ΔE00 6.55
Indigo (survey)
#380282
ΔE00 6.77
Deep Violet
#490648
ΔE00 7.91
Dark Indigo
#1F0954
ΔE00 8.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C166C #366C16
analogous
#21166C #4C166C #6C1661
triadic
#4C166C #6C4C16 #166C4C
tetradic
#4C166C #6C2116 #366C16 #16616C
square
#4C166C #6C2116 #366C16 #16616C
split-complementary
#4C166C #616C16 #166C21
monochromatic
#120519 #280C39 #4C166C #70209F #942BD2
Accessibility & contrast
On white
12.82
#4C166C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#4C166C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C166C
12.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C166C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C166C | 1.00 | 12.82 | 1.64 | 12.82 |
| #FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00336A
Tritanopia (blue-blind)
#472B40
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #4c166c; /* rgb */ color: rgb(76, 22, 108); /* oklch */ color: oklch(33.5% 0.141 309.2);
Tailwind
colors: {
custom: {
50: '#825a97',
500: '#4c166c',
950: '#000000',
},
}SCSS
$custom: #4c166c; $custom-light: #825a97; $custom-dark: #000000;
JSON
{
"hex": "#4c166c",
"rgb": {
"r": 76,
"g": 22,
"b": 108
},
"hsl": {
"h": 277.674,
"s": 66.154,
"l": 25.49
},
"oklch": {
"l": 0.3353,
"c": 0.1415,
"h": 309.2
},
"luminance": 0.03193
}Semantic roles & 50–950 ramp
primary
#4C166C
secondary
#62A23C
accent
#E93F7E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E