#4C137E#4C137E
#4C137E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.163 H 302.2°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).
Color values
| HEX | #4C137E |
|---|---|
| RGB | rgb(76, 19, 126) |
| HSL | hsl(272, 74%, 28%) |
| HSV | hsv(272, 85%, 49%) |
| CMYK | cmyk(39.7%, 84.9%, 0%, 50.6%) |
| CIE-LAB | lab(21.98, 45.68, -48.30) |
| CIE-LCH | lch(21.98, 66.48, 313.40°) |
| OKLab | oklab(34.84% 0.087 -0.138) |
| OKLCH | oklch(34.84% 0.163 302.2) |
| XYZ | xyz(6.9783, 3.5086, 20.0442) |
| Luminance | 0.0351 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.16
Royal Purple (survey)
#4B006E
ΔE00 3.48
Indigo (survey)
#380282
ΔE00 4.21
Rebeccapurple
#663399
ΔE00 8.26
Indigo Blue
#3A18B1
ΔE00 8.29
Midnight Blue
#191970
ΔE00 8.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C137E #457E13
analogous
#17137E #4C137E #7E137A
triadic
#4C137E #7E4C13 #137E4C
tetradic
#4C137E #7E1713 #457E13 #137A7E
square
#4C137E #7E1713 #457E13 #137A7E
split-complementary
#4C137E #7A7E13 #137E17
monochromatic
#10041B #2C0B49 #4C137E #6C1BB3 #8C2CDF
Accessibility & contrast
On white
12.34
#4C137E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#4C137E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C137E
12.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C137E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C137E | 1.00 | 12.34 | 1.70 | 12.34 |
| #FFFFFF | 12.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#41314A
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4c137e; /* rgb */ color: rgb(76, 19, 126); /* oklch */ color: oklch(34.8% 0.163 302.2);
Tailwind
colors: {
custom: {
50: '#845aa4',
500: '#4c137e',
950: '#000000',
},
}SCSS
$custom: #4c137e; $custom-light: #845aa4; $custom-dark: #000000;
JSON
{
"hex": "#4c137e",
"rgb": {
"r": 76,
"g": 19,
"b": 126
},
"hsl": {
"h": 271.963,
"s": 73.793,
"l": 28.431
},
"oklch": {
"l": 0.3484,
"c": 0.1631,
"h": 302.2
},
"luminance": 0.03509
}Semantic roles & 50–950 ramp
primary
#4C137E
secondary
#72B439
accent
#F0378E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F