#4C2AB1#4C2AB1
#4C2AB1 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.197 H 285.8°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).
Color values
| HEX | #4C2AB1 |
|---|---|
| RGB | rgb(76, 42, 177) |
| HSL | hsl(255, 62%, 43%) |
| HSV | hsv(255, 76%, 69%) |
| CMYK | cmyk(57.1%, 76.3%, 0%, 30.6%) |
| CIE-LAB | lab(30.32, 49.38, -65.96) |
| CIE-LCH | lch(30.32, 82.39, 306.82°) |
| OKLab | oklab(42.14% 0.0539 -0.1899) |
| OKLCH | oklch(42.14% 0.197 285.8) |
| XYZ | xyz(11.7419, 6.3661, 42.1965) |
| Luminance | 0.0637 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.81
Violet Blue
#510AC9
ΔE00 4.50
Purple Blue
#5D21D0
ΔE00 4.69
Blue With A Hint Of Purple
#533CC6
ΔE00 5.19
Blurple
#5539CC
ΔE00 5.26
Ocean Blue
#4F42B5
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C2AB1 #8FB12A
analogous
#2A4BB1 #4C2AB1 #8F2AB1
triadic
#4C2AB1 #B14C2A #2AB14C
tetradic
#4C2AB1 #B12A4B #8FB12A #2AB18F
square
#4C2AB1 #B12A4B #8FB12A #2AB18F
split-complementary
#4C2AB1 #B18F2A #4BB12A
monochromatic
#22134E #371E80 #4C2AB1 #6945D3 #9177DF
Accessibility & contrast
On white
9.24
#4C2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#4C2AB1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C2AB1
9.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C2AB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C2AB1 | 1.00 | 9.24 | 2.27 | 9.24 |
| #FFFFFF | 9.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#1A506C
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #4c2ab1; /* rgb */ color: rgb(76, 42, 177); /* oklch */ color: oklch(42.1% 0.197 285.8);
Tailwind
colors: {
custom: {
50: '#8a68c9',
500: '#4c2ab1',
950: '#000000',
},
}SCSS
$custom: #4c2ab1; $custom-light: #8a68c9; $custom-dark: #000000;
JSON
{
"hex": "#4c2ab1",
"rgb": {
"r": 76,
"g": 42,
"b": 177
},
"hsl": {
"h": 255.111,
"s": 61.644,
"l": 42.941
},
"oklch": {
"l": 0.42136,
"c": 0.19741,
"h": 285.8
},
"luminance": 0.06367
}Semantic roles & 50–950 ramp
primary
#4C2AB1
secondary
#B1C670
accent
#E543BC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82