#4C176C#4C176C
#4C176C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.140 H 309.1°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).
Color values
| HEX | #4C176C |
|---|---|
| RGB | rgb(76, 23, 108) |
| HSL | hsl(277, 65%, 26%) |
| HSV | hsv(277, 79%, 42%) |
| CMYK | cmyk(29.6%, 78.7%, 0%, 57.6%) |
| CIE-LAB | lab(20.95, 39.74, -38.41) |
| CIE-LCH | lch(20.95, 55.27, 315.98°) |
| OKLab | oklab(33.64% 0.0884 -0.109) |
| OKLCH | oklch(33.64% 0.14 309.1) |
| XYZ | xyz(5.9931, 3.2321, 14.4926) |
| Luminance | 0.0323 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.08
Indigo
#4B0082
ΔE00 5.08
Plum Purple
#4E0550
ΔE00 6.59
Indigo (survey)
#380282
ΔE00 6.86
Deep Violet
#490648
ΔE00 7.93
Dark Indigo
#1F0954
ΔE00 8.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C176C #376C17
analogous
#22176C #4C176C #6C1761
triadic
#4C176C #6C4C17 #176C4C
tetradic
#4C176C #6C2217 #376C17 #17616C
square
#4C176C #6C2217 #376C17 #17616C
split-complementary
#4C176C #616C17 #176C22
monochromatic
#120519 #280C3A #4C176C #70229E #932CD1
Accessibility & contrast
On white
12.76
#4C176C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#4C176C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C176C
12.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C176C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C176C | 1.00 | 12.76 | 1.65 | 12.76 |
| #FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.76 | 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: #4c176c; /* rgb */ color: rgb(76, 23, 108); /* oklch */ color: oklch(33.6% 0.140 309.1);
Tailwind
colors: {
custom: {
50: '#825a97',
500: '#4c176c',
950: '#000000',
},
}SCSS
$custom: #4c176c; $custom-light: #825a97; $custom-dark: #000000;
JSON
{
"hex": "#4c176c",
"rgb": {
"r": 76,
"g": 23,
"b": 108
},
"hsl": {
"h": 277.412,
"s": 64.885,
"l": 25.686
},
"oklch": {
"l": 0.33635,
"c": 0.14032,
"h": 309.1
},
"luminance": 0.03232
}Semantic roles & 50–950 ramp
primary
#4C176C
secondary
#63A23D
accent
#E8407F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E