#4C1F7D#4C1F7D
#4C1F7D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.149 H 300.9°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).
Color values
| HEX | #4C1F7D |
|---|---|
| RGB | rgb(76, 31, 125) |
| HSL | hsl(269, 60%, 31%) |
| HSV | hsv(269, 75%, 49%) |
| CMYK | cmyk(39.2%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(23.66, 40.32, -44.91) |
| CIE-LCH | lch(23.66, 60.36, 311.92°) |
| OKLab | oklab(35.99% 0.0766 -0.1281) |
| OKLCH | oklch(35.99% 0.149 300.9) |
| XYZ | xyz(7.1712, 3.9971, 19.7918) |
| Luminance | 0.0400 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.25
Royal Purple (survey)
#4B006E
ΔE00 4.94
Indigo (survey)
#380282
ΔE00 5.70
Rebeccapurple
#663399
ΔE00 7.06
Midnight Blue
#191970
ΔE00 8.19
Darkslateblue
#483D8B
ΔE00 8.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C1F7D #507D1F
analogous
#1F217D #4C1F7D #7B1F7D
triadic
#4C1F7D #7D4C1F #1F7D4C
tetradic
#4C1F7D #7D1F21 #507D1F #1F7D7B
square
#4C1F7D #7D1F21 #507D1F #1F7D7B
split-complementary
#4C1F7D #7D7B1F #217D1F
monochromatic
#10071B #2E134C #4C1F7D #6A2BAE #8845D1
Accessibility & contrast
On white
11.67
#4C1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#4C1F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C1F7D
11.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C1F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C1F7D | 1.00 | 11.67 | 1.80 | 11.67 |
| #FFFFFF | 11.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#41364C
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4c1f7d; /* rgb */ color: rgb(76, 31, 125); /* oklch */ color: oklch(36.0% 0.149 300.9);
Tailwind
colors: {
custom: {
50: '#835fa3',
500: '#4c1f7d',
950: '#000000',
},
}SCSS
$custom: #4c1f7d; $custom-light: #835fa3; $custom-dark: #000000;
JSON
{
"hex": "#4c1f7d",
"rgb": {
"r": 76,
"g": 31,
"b": 125
},
"hsl": {
"h": 268.723,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.35993,
"c": 0.14929,
"h": 300.9
},
"luminance": 0.03997
}Semantic roles & 50–950 ramp
primary
#4C1F7D
secondary
#7EB048
accent
#E34497
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F