#4C2CA1#4C2CA1
#4C2CA1 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.176 H 288.6°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).
Color values
| HEX | #4C2CA1 |
|---|---|
| RGB | rgb(76, 44, 161) |
| HSL | hsl(256, 57%, 40%) |
| HSV | hsv(256, 73%, 63%) |
| CMYK | cmyk(52.8%, 72.7%, 0%, 36.9%) |
| CIE-LAB | lab(29.19, 43.71, -58.19) |
| CIE-LCH | lch(29.19, 72.78, 306.91°) |
| OKLab | oklab(40.88% 0.0562 -0.1672) |
| OKLCH | oklch(40.88% 0.176 288.6) |
| XYZ | xyz(10.3123, 5.9106, 34.3088) |
| Luminance | 0.0591 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.70
Rebeccapurple
#663399
ΔE00 5.49
Ocean Blue
#4F42B5
ΔE00 6.26
Violet Blue
#510AC9
ΔE00 6.40
Darkslateblue
#483D8B
ΔE00 6.44
Blue With A Hint Of Purple
#533CC6
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C2CA1 #81A12C
analogous
#2C47A1 #4C2CA1 #862CA1
triadic
#4C2CA1 #A14C2C #2CA14C
tetradic
#4C2CA1 #A12C47 #81A12C #2CA186
square
#4C2CA1 #A12C47 #81A12C #2CA186
split-complementary
#4C2CA1 #A1862C #47A12C
monochromatic
#1F1241 #351F71 #4C2CA1 #6640CB #8C70D8
Accessibility & contrast
On white
9.62
#4C2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#4C2CA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C2CA1
9.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C2CA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C2CA1 | 1.00 | 9.62 | 2.18 | 9.62 |
| #FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#2C4B63
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #4c2ca1; /* rgb */ color: rgb(76, 44, 161); /* oklch */ color: oklch(40.9% 0.176 288.6);
Tailwind
colors: {
custom: {
50: '#8768be',
500: '#4c2ca1',
950: '#000000',
},
}SCSS
$custom: #4c2ca1; $custom-light: #8768be; $custom-dark: #000000;
JSON
{
"hex": "#4c2ca1",
"rgb": {
"r": 76,
"g": 44,
"b": 161
},
"hsl": {
"h": 256.41,
"s": 57.073,
"l": 40.196
},
"oklch": {
"l": 0.40882,
"c": 0.17638,
"h": 288.6
},
"luminance": 0.05911
}Semantic roles & 50–950 ramp
primary
#4C2CA1
secondary
#A8BF6A
accent
#E047B7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81