#4C1F94#4C1F94
#4C1F94 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.175 H 293.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).
Color values
| HEX | #4C1F94 |
|---|---|
| RGB | rgb(76, 31, 148) |
| HSL | hsl(263, 65%, 35%) |
| HSV | hsv(263, 79%, 58%) |
| CMYK | cmyk(48.6%, 79.1%, 0%, 42%) |
| CIE-LAB | lab(25.73, 46.46, -55.91) |
| CIE-LCH | lch(25.73, 72.70, 309.73°) |
| OKLab | oklab(38.08% 0.0706 -0.1604) |
| OKLCH | oklch(38.08% 0.175 293.7) |
| XYZ | xyz(8.8143, 4.6543, 28.4452) |
| Luminance | 0.0466 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.84
Indigo Blue
#3A18B1
ΔE00 4.90
Indigo (survey)
#380282
ΔE00 5.59
Rebeccapurple
#663399
ΔE00 6.26
Ultramarine
#2000B1
ΔE00 6.96
Royal
#0C1793
ΔE00 7.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C1F94 #67941F
analogous
#1F2C94 #4C1F94 #861F94
triadic
#4C1F94 #944C1F #1F944C
tetradic
#4C1F94 #941F2C #67941F #1F9486
square
#4C1F94 #941F2C #67941F #1F9486
split-complementary
#4C1F94 #94861F #2C941F
monochromatic
#180A2F #321461 #4C1F94 #662AC7 #8753DB
Accessibility & contrast
On white
10.88
#4C1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#4C1F94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C1F94
10.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C1F94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C1F94 | 1.00 | 10.88 | 1.93 | 10.88 |
| #FFFFFF | 10.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003B92
Tritanopia (blue-blind)
#364059
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #4c1f94; /* rgb */ color: rgb(76, 31, 148); /* oklch */ color: oklch(38.1% 0.175 293.7);
Tailwind
colors: {
custom: {
50: '#8660b4',
500: '#4c1f94',
950: '#000000',
},
}SCSS
$custom: #4c1f94; $custom-light: #8660b4; $custom-dark: #000000;
JSON
{
"hex": "#4c1f94",
"rgb": {
"r": 76,
"g": 31,
"b": 148
},
"hsl": {
"h": 263.077,
"s": 65.363,
"l": 35.098
},
"oklch": {
"l": 0.3808,
"c": 0.17525,
"h": 293.7
},
"luminance": 0.04655
}Semantic roles & 50–950 ramp
primary
#4C1F94
secondary
#94BE51
accent
#E83FA7
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980