#4C167B#4C167B
#4C167B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.157 H 303.0°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).
Color values
| HEX | #4C167B |
|---|---|
| RGB | rgb(76, 22, 123) |
| HSL | hsl(272, 70%, 28%) |
| HSV | hsv(272, 82%, 48%) |
| CMYK | cmyk(38.2%, 82.1%, 0%, 51.8%) |
| CIE-LAB | lab(22.09, 43.81, -46.20) |
| CIE-LCH | lch(22.09, 63.67, 313.48°) |
| OKLab | oklab(34.84% 0.0856 -0.1319) |
| OKLCH | oklch(34.84% 0.157 303) |
| XYZ | xyz(6.8417, 3.5404, 19.0580) |
| Luminance | 0.0354 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.81
Royal Purple (survey)
#4B006E
ΔE00 3.41
Indigo (survey)
#380282
ΔE00 4.73
Rebeccapurple
#663399
ΔE00 8.16
Midnight Blue
#191970
ΔE00 8.36
Indigo Blue
#3A18B1
ΔE00 8.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C167B #457B16
analogous
#19167B #4C167B #7B1677
triadic
#4C167B #7B4C16 #167B4C
tetradic
#4C167B #7B1916 #457B16 #16777B
square
#4C167B #7B1916 #457B16 #16777B
split-complementary
#4C167B #777B16 #167B19
monochromatic
#10051A #2C0D47 #4C167B #6C1FAF #8C31DA
Accessibility & contrast
On white
12.30
#4C167B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#4C167B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C167B
12.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C167B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C167B | 1.00 | 12.30 | 1.71 | 12.30 |
| #FFFFFF | 12.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#423149
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4c167b; /* rgb */ color: rgb(76, 22, 123); /* oklch */ color: oklch(34.8% 0.157 303.0);
Tailwind
colors: {
custom: {
50: '#835ba2',
500: '#4c167b',
950: '#000000',
},
}SCSS
$custom: #4c167b; $custom-light: #835ba2; $custom-dark: #000000;
JSON
{
"hex": "#4c167b",
"rgb": {
"r": 76,
"g": 22,
"b": 123
},
"hsl": {
"h": 272.079,
"s": 69.655,
"l": 28.431
},
"oklch": {
"l": 0.34835,
"c": 0.15718,
"h": 303
},
"luminance": 0.0354
}Semantic roles & 50–950 ramp
primary
#4C167B
secondary
#72B03D
accent
#EC3B8E
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F