#4C1B9E#4C1B9E
#4C1B9E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.190 H 291.7°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).
Color values
| HEX | #4C1B9E |
|---|---|
| RGB | rgb(76, 27, 158) |
| HSL | hsl(262, 71%, 36%) |
| HSV | hsv(262, 83%, 62%) |
| CMYK | cmyk(51.9%, 82.9%, 0%, 38%) |
| CIE-LAB | lab(26.12, 50.82, -61.39) |
| CIE-LCH | lch(26.12, 79.70, 309.62°) |
| OKLab | oklab(38.65% 0.0701 -0.1764) |
| OKLCH | oklch(38.65% 0.19 291.7) |
| XYZ | xyz(9.5422, 4.7886, 32.7626) |
| Luminance | 0.0479 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.52
Indigo
#4B0082
ΔE00 5.41
Violet Blue
#510AC9
ΔE00 5.65
Ultramarine
#2000B1
ΔE00 5.79
Indigo (survey)
#380282
ΔE00 5.93
Cobalt Blue
#030AA7
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C1B9E #6D9E1B
analogous
#1B2B9E #4C1B9E #8E1B9E
triadic
#4C1B9E #9E4C1B #1B9E4C
tetradic
#4C1B9E #9E1B2B #6D9E1B #1B9E8E
square
#4C1B9E #9E1B2B #6D9E1B #1B9E8E
split-complementary
#4C1B9E #9E8E1B #2B9E1B
monochromatic
#1A0935 #33126A #4C1B9E #6524D2 #8852E1
Accessibility & contrast
On white
10.73
#4C1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#4C1B9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C1B9E
10.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C1B9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C1B9E | 1.00 | 10.73 | 1.96 | 10.73 |
| #FFFFFF | 10.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A2
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#2F425E
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #4c1b9e; /* rgb */ color: rgb(76, 27, 158); /* oklch */ color: oklch(38.7% 0.190 291.7);
Tailwind
colors: {
custom: {
50: '#885fbc',
500: '#4c1b9e',
950: '#000000',
},
}SCSS
$custom: #4c1b9e; $custom-light: #885fbc; $custom-dark: #000000;
JSON
{
"hex": "#4c1b9e",
"rgb": {
"r": 76,
"g": 27,
"b": 158
},
"hsl": {
"h": 262.443,
"s": 70.811,
"l": 36.275
},
"oklch": {
"l": 0.38652,
"c": 0.18985,
"h": 291.7
},
"luminance": 0.04789
}Semantic roles & 50–950 ramp
primary
#4C1B9E
secondary
#99C451
accent
#EE3AAA
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981