#4C166B#4C166B
#4C166B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.140 H 309.7°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).
Color values
| HEX | #4C166B |
|---|---|
| RGB | rgb(76, 22, 107) |
| HSL | hsl(278, 66%, 25%) |
| HSV | hsv(278, 79%, 42%) |
| CMYK | cmyk(29%, 79.4%, 0%, 58%) |
| CIE-LAB | lab(20.72, 39.93, -38.13) |
| CIE-LCH | lch(20.72, 55.21, 316.32°) |
| OKLab | oklab(33.45% 0.0896 -0.1081) |
| OKLCH | oklch(33.45% 0.14 309.7) |
| XYZ | xyz(5.9207, 3.1720, 14.2074) |
| Luminance | 0.0317 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.97
Indigo
#4B0082
ΔE00 5.15
Plum Purple
#4E0550
ΔE00 6.36
Indigo (survey)
#380282
ΔE00 6.94
Deep Violet
#490648
ΔE00 7.72
Dark Indigo
#1F0954
ΔE00 8.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C166B #356B16
analogous
#22166B #4C166B #6B165F
triadic
#4C166B #6B4C16 #166B4C
tetradic
#4C166B #6B2216 #356B16 #165F6B
square
#4C166B #6B2216 #356B16 #165F6B
split-complementary
#4C166B #5F6B16 #166B22
monochromatic
#120519 #280C38 #4C166B #70209E #942BD1
Accessibility & contrast
On white
12.85
#4C166B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#4C166B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C166B
12.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C166B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C166B | 1.00 | 12.85 | 1.63 | 12.85 |
| #FFFFFF | 12.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#003369
Tritanopia (blue-blind)
#472A40
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #4c166b; /* rgb */ color: rgb(76, 22, 107); /* oklch */ color: oklch(33.4% 0.140 309.7);
Tailwind
colors: {
custom: {
50: '#825a96',
500: '#4c166b',
950: '#000000',
},
}SCSS
$custom: #4c166b; $custom-light: #825a96; $custom-dark: #000000;
JSON
{
"hex": "#4c166b",
"rgb": {
"r": 76,
"g": 22,
"b": 107
},
"hsl": {
"h": 278.118,
"s": 65.891,
"l": 25.294
},
"oklch": {
"l": 0.33447,
"c": 0.14046,
"h": 309.7
},
"luminance": 0.03172
}Semantic roles & 50–950 ramp
primary
#4C166B
secondary
#61A13B
accent
#E93F7D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E