#4C167C#4C167C
#4C167C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.158 H 302.6°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).
Color values
| HEX | #4C167C |
|---|---|
| RGB | rgb(76, 22, 124) |
| HSL | hsl(272, 70%, 29%) |
| HSV | hsv(272, 82%, 49%) |
| CMYK | cmyk(38.7%, 82.3%, 0%, 51.4%) |
| CIE-LAB | lab(22.18, 44.06, -46.69) |
| CIE-LCH | lch(22.18, 64.20, 313.34°) |
| OKLab | oklab(34.92% 0.0853 -0.1333) |
| OKLCH | oklch(34.92% 0.158 302.6) |
| XYZ | xyz(6.9046, 3.5655, 19.3893) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.73
Royal Purple (survey)
#4B006E
ΔE00 3.53
Indigo (survey)
#380282
ΔE00 4.64
Rebeccapurple
#663399
ΔE00 8.09
Midnight Blue
#191970
ΔE00 8.33
Indigo Blue
#3A18B1
ΔE00 8.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C167C #467C16
analogous
#19167C #4C167C #7C1679
triadic
#4C167C #7C4C16 #167C4C
tetradic
#4C167C #7C1916 #467C16 #16797C
square
#4C167C #7C1916 #467C16 #16797C
split-complementary
#4C167C #797C16 #167C19
monochromatic
#10051A #2C0D48 #4C167C #6C1FB0 #8B32DB
Accessibility & contrast
On white
12.26
#4C167C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#4C167C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C167C
12.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C167C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C167C | 1.00 | 12.26 | 1.71 | 12.26 |
| #FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#423249
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4c167c; /* rgb */ color: rgb(76, 22, 124); /* oklch */ color: oklch(34.9% 0.158 302.6);
Tailwind
colors: {
custom: {
50: '#835ba3',
500: '#4c167c',
950: '#000000',
},
}SCSS
$custom: #4c167c; $custom-light: #835ba3; $custom-dark: #000000;
JSON
{
"hex": "#4c167c",
"rgb": {
"r": 76,
"g": 22,
"b": 124
},
"hsl": {
"h": 271.765,
"s": 69.863,
"l": 28.627
},
"oklch": {
"l": 0.34925,
"c": 0.15823,
"h": 302.6
},
"luminance": 0.03566
}Semantic roles & 50–950 ramp
primary
#4C167C
secondary
#73B13D
accent
#ED3B8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F