#4C147E#4C147E
#4C147E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.162 H 302.1°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).
Color values
| HEX | #4C147E |
|---|---|
| RGB | rgb(76, 20, 126) |
| HSL | hsl(272, 73%, 29%) |
| HSV | hsv(272, 84%, 49%) |
| CMYK | cmyk(39.7%, 84.1%, 0%, 50.6%) |
| CIE-LAB | lab(22.10, 45.32, -48.10) |
| CIE-LCH | lch(22.10, 66.08, 313.30°) |
| OKLab | oklab(34.93% 0.0862 -0.1374) |
| OKLCH | oklch(34.93% 0.162 302.1) |
| XYZ | xyz(6.9956, 3.5431, 20.0500) |
| Luminance | 0.0354 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.29
Royal Purple (survey)
#4B006E
ΔE00 3.56
Indigo (survey)
#380282
ΔE00 4.29
Rebeccapurple
#663399
ΔE00 8.16
Indigo Blue
#3A18B1
ΔE00 8.28
Midnight Blue
#191970
ΔE00 8.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C147E #467E14
analogous
#17147E #4C147E #7E147B
triadic
#4C147E #7E4C14 #147E4C
tetradic
#4C147E #7E1714 #467E14 #147B7E
square
#4C147E #7E1714 #467E14 #147B7E
split-complementary
#4C147E #7B7E14 #147E17
monochromatic
#10041A #2C0C49 #4C147E #6C1CB3 #8B2EDE
Accessibility & contrast
On white
12.29
#4C147E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#4C147E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C147E
12.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C147E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C147E | 1.00 | 12.29 | 1.71 | 12.29 |
| #FFFFFF | 12.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#41324A
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4c147e; /* rgb */ color: rgb(76, 20, 126); /* oklch */ color: oklch(34.9% 0.162 302.1);
Tailwind
colors: {
custom: {
50: '#845aa4',
500: '#4c147e',
950: '#000000',
},
}SCSS
$custom: #4c147e; $custom-light: #845aa4; $custom-dark: #000000;
JSON
{
"hex": "#4c147e",
"rgb": {
"r": 76,
"g": 20,
"b": 126
},
"hsl": {
"h": 271.698,
"s": 72.603,
"l": 28.627
},
"oklch": {
"l": 0.34926,
"c": 0.16221,
"h": 302.1
},
"luminance": 0.03543
}Semantic roles & 50–950 ramp
primary
#4C147E
secondary
#73B33A
accent
#EF388F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F