#4C1F7F#4C1F7F
#4C1F7F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.152 H 300.2°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).
Color values
| HEX | #4C1F7F |
|---|---|
| RGB | rgb(76, 31, 127) |
| HSL | hsl(268, 61%, 31%) |
| HSV | hsv(268, 76%, 50%) |
| CMYK | cmyk(40.2%, 75.6%, 0%, 50.2%) |
| CIE-LAB | lab(23.83, 40.85, -45.90) |
| CIE-LCH | lch(23.83, 61.45, 311.67°) |
| OKLab | oklab(36.17% 0.0762 -0.131) |
| OKLCH | oklch(36.17% 0.152 300.2) |
| XYZ | xyz(7.3003, 4.0487, 20.4714) |
| Luminance | 0.0405 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.14
Royal Purple (survey)
#4B006E
ΔE00 5.11
Indigo (survey)
#380282
ΔE00 5.56
Rebeccapurple
#663399
ΔE00 6.92
Midnight Blue
#191970
ΔE00 8.15
Indigo Blue
#3A18B1
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C1F7F #527F1F
analogous
#1F227F #4C1F7F #7C1F7F
triadic
#4C1F7F #7F4C1F #1F7F4C
tetradic
#4C1F7F #7F1F22 #527F1F #1F7F7C
square
#4C1F7F #7F1F22 #527F1F #1F7F7C
split-complementary
#4C1F7F #7F7C1F #227F1F
monochromatic
#11071D #2F134E #4C1F7F #692BB0 #8846D2
Accessibility & contrast
On white
11.60
#4C1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#4C1F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C1F7F
11.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C1F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C1F7F | 1.00 | 11.60 | 1.81 | 11.60 |
| #FFFFFF | 11.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#40374D
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #4c1f7f; /* rgb */ color: rgb(76, 31, 127); /* oklch */ color: oklch(36.2% 0.152 300.2);
Tailwind
colors: {
custom: {
50: '#835fa5',
500: '#4c1f7f',
950: '#000000',
},
}SCSS
$custom: #4c1f7f; $custom-light: #835fa5; $custom-dark: #000000;
JSON
{
"hex": "#4c1f7f",
"rgb": {
"r": 76,
"g": 31,
"b": 127
},
"hsl": {
"h": 268.125,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.36166,
"c": 0.15157,
"h": 300.2
},
"luminance": 0.04049
}Semantic roles & 50–950 ramp
primary
#4C1F7F
secondary
#80B248
accent
#E44499
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F