#4C1F9E#4C1F9E
#4C1F9E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.186 H 291.2°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).
Color values
| HEX | #4C1F9E |
|---|---|
| RGB | rgb(76, 31, 158) |
| HSL | hsl(261, 67%, 37%) |
| HSV | hsv(261, 80%, 62%) |
| CMYK | cmyk(51.9%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(26.69, 49.16, -60.46) |
| CIE-LCH | lch(26.69, 77.93, 309.12°) |
| OKLab | oklab(39.05% 0.0674 -0.1737) |
| OKLCH | oklch(39.05% 0.186 291.2) |
| XYZ | xyz(9.6403, 4.9847, 32.7953) |
| Luminance | 0.0498 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.62
Violet Blue
#510AC9
ΔE00 5.74
Indigo
#4B0082
ΔE00 5.86
Ultramarine
#2000B1
ΔE00 6.14
Indigo (survey)
#380282
ΔE00 6.36
Rebeccapurple
#663399
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C1F9E #719E1F
analogous
#1F319E #4C1F9E #8C1F9E
triadic
#4C1F9E #9E4C1F #1F9E4C
tetradic
#4C1F9E #9E1F31 #719E1F #1F9E8C
square
#4C1F9E #9E1F31 #719E1F #1F9E8C
split-complementary
#4C1F9E #9E8C1F #319E1F
monochromatic
#1B0B38 #33156B #4C1F9E #6529D1 #8859DE
Accessibility & contrast
On white
10.52
#4C1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#4C1F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C1F9E
10.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C1F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C1F9E | 1.00 | 10.52 | 2.00 | 10.52 |
| #FFFFFF | 10.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#2F445F
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #4c1f9e; /* rgb */ color: rgb(76, 31, 158); /* oklch */ color: oklch(39.0% 0.186 291.2);
Tailwind
colors: {
custom: {
50: '#8761bc',
500: '#4c1f9e',
950: '#000000',
},
}SCSS
$custom: #4c1f9e; $custom-light: #8761bc; $custom-dark: #000000;
JSON
{
"hex": "#4c1f9e",
"rgb": {
"r": 76,
"g": 31,
"b": 158
},
"hsl": {
"h": 261.26,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.39045,
"c": 0.18636,
"h": 291.2
},
"luminance": 0.04985
}Semantic roles & 50–950 ramp
primary
#4C1F9E
secondary
#9CC256
accent
#EA3EAD
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981