#4C1F97#4C1F97
#4C1F97 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.179 H 293.0°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).
Color values
| HEX | #4C1F97 |
|---|---|
| RGB | rgb(76, 31, 151) |
| HSL | hsl(263, 66%, 36%) |
| HSV | hsv(263, 79%, 59%) |
| CMYK | cmyk(49.7%, 79.5%, 0%, 40.8%) |
| CIE-LAB | lab(26.01, 47.27, -57.29) |
| CIE-LCH | lch(26.01, 74.28, 309.53°) |
| OKLab | oklab(38.37% 0.0696 -0.1645) |
| OKLCH | oklch(38.37% 0.179 293) |
| XYZ | xyz(9.0548, 4.7505, 29.7120) |
| Luminance | 0.0475 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.49
Indigo
#4B0082
ΔE00 5.13
Indigo (survey)
#380282
ΔE00 5.79
Rebeccapurple
#663399
ΔE00 6.29
Ultramarine
#2000B1
ΔE00 6.68
Violet Blue
#510AC9
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C1F97 #6A971F
analogous
#1F2E97 #4C1F97 #881F97
triadic
#4C1F97 #974C1F #1F974C
tetradic
#4C1F97 #971F2E #6A971F #1F9788
square
#4C1F97 #971F2E #6A971F #1F9788
split-complementary
#4C1F97 #97881F #2E971F
monochromatic
#190A31 #321564 #4C1F97 #6629CA #8754DC
Accessibility & contrast
On white
10.77
#4C1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#4C1F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C1F97
10.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C1F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C1F97 | 1.00 | 10.77 | 1.95 | 10.77 |
| #FFFFFF | 10.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#34415B
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #4c1f97; /* rgb */ color: rgb(76, 31, 151); /* oklch */ color: oklch(38.4% 0.179 293.0);
Tailwind
colors: {
custom: {
50: '#8661b7',
500: '#4c1f97',
950: '#000000',
},
}SCSS
$custom: #4c1f97; $custom-light: #8661b7; $custom-dark: #000000;
JSON
{
"hex": "#4c1f97",
"rgb": {
"r": 76,
"g": 31,
"b": 151
},
"hsl": {
"h": 262.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.38367,
"c": 0.1786,
"h": 293
},
"luminance": 0.04751
}Semantic roles & 50–950 ramp
primary
#4C1F97
secondary
#97BF52
accent
#E93FA9
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980