#4C167F#4C167F
#4C167F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.161 H 301.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).
Color values
| HEX | #4C167F |
|---|---|
| RGB | rgb(76, 22, 127) |
| HSL | hsl(271, 70%, 29%) |
| HSV | hsv(271, 83%, 50%) |
| CMYK | cmyk(40.2%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(22.45, 44.80, -48.15) |
| CIE-LCH | lch(22.45, 65.77, 312.94°) |
| OKLab | oklab(35.2% 0.0843 -0.1376) |
| OKLCH | oklch(35.2% 0.161 301.5) |
| XYZ | xyz(7.0972, 3.6426, 20.4037) |
| Luminance | 0.0364 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.53
Royal Purple (survey)
#4B006E
ΔE00 3.89
Indigo (survey)
#380282
ΔE00 4.40
Rebeccapurple
#663399
ΔE00 7.89
Indigo Blue
#3A18B1
ΔE00 8.10
Midnight Blue
#191970
ΔE00 8.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C167F #497F16
analogous
#17167F #4C167F #7F167E
triadic
#4C167F #7F4C16 #167F4C
tetradic
#4C167F #7F1716 #497F16 #167E7F
square
#4C167F #7F1716 #497F16 #167E7F
split-complementary
#4C167F #7E7F16 #167F17
monochromatic
#10051A #2D0D4B #4C167F #6B1FB3 #8A34DC
Accessibility & contrast
On white
12.15
#4C167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#4C167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C167F
12.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C167F | 1.00 | 12.15 | 1.73 | 12.15 |
| #FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#41334B
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4c167f; /* rgb */ color: rgb(76, 22, 127); /* oklch */ color: oklch(35.2% 0.161 301.5);
Tailwind
colors: {
custom: {
50: '#845ba5',
500: '#4c167f',
950: '#000000',
},
}SCSS
$custom: #4c167f; $custom-light: #845ba5; $custom-dark: #000000;
JSON
{
"hex": "#4c167f",
"rgb": {
"r": 76,
"g": 22,
"b": 127
},
"hsl": {
"h": 270.857,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.35199,
"c": 0.16136,
"h": 301.5
},
"luminance": 0.03643
}Semantic roles & 50–950 ramp
primary
#4C167F
secondary
#77B43D
accent
#ED3B91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F