#4C2CD4#4C2CD4
#4C2CD4 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.9% C 0.235 H 280.5°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).
Color values
| HEX | #4C2CD4 |
|---|---|
| RGB | rgb(76, 44, 212) |
| HSL | hsl(251, 66%, 50%) |
| HSV | hsv(251, 79%, 83%) |
| CMYK | cmyk(64.2%, 79.2%, 0%, 16.9%) |
| CIE-LAB | lab(34.17, 58.45, -80.16) |
| CIE-LCH | lch(34.17, 99.21, 306.10°) |
| OKLab | oklab(45.87% 0.0427 -0.2314) |
| OKLCH | oklch(45.87% 0.235 280.5) |
| XYZ | xyz(15.7611, 8.0901, 63.0056) |
| Luminance | 0.0809 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 2.62
Blurple
#5539CC
ΔE00 2.80
Blue With A Hint Of Purple
#533CC6
ΔE00 3.56
Blue Violet
#5D06E9
ΔE00 4.13
Purpley Blue
#5F34E7
ΔE00 4.16
Blue Purple
#5A06EF
ΔE00 4.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C2CD4 #B4D42C
analogous
#2C60D4 #4C2CD4 #A02CD4
triadic
#4C2CD4 #D44C2C #2CD44C
tetradic
#4C2CD4 #D42C60 #B4D42C #2CD4A0
square
#4C2CD4 #D42C60 #B4D42C #2CD4A0
split-complementary
#4C2CD4 #D4A02C #60D42C
monochromatic
#27176F #3A21A2 #4C2CD4 #775FDE #A292E9
Accessibility & contrast
On white
8.02
#4C2CD4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#4C2CD4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C2CD4
8.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C2CD4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C2CD4 | 1.00 | 8.02 | 2.62 | 8.02 |
| #FFFFFF | 8.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056D9
Deuteranopia (green-blind)
#004AD1
Tritanopia (blue-blind)
#005F81
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #4c2cd4; /* rgb */ color: rgb(76, 44, 212); /* oklch */ color: oklch(45.9% 0.235 280.5);
Tailwind
colors: {
custom: {
50: '#906be3',
500: '#4c2cd4',
950: '#000000',
},
}SCSS
$custom: #4c2cd4; $custom-light: #906be3; $custom-dark: #000000;
JSON
{
"hex": "#4c2cd4",
"rgb": {
"r": 76,
"g": 44,
"b": 212
},
"hsl": {
"h": 251.429,
"s": 66.142,
"l": 50.196
},
"oklch": {
"l": 0.45874,
"c": 0.2353,
"h": 280.5
},
"luminance": 0.08091
}Semantic roles & 50–950 ramp
primary
#4C2CD4
secondary
#C5D388
accent
#E93FC9
background
#F9F6FE
surface
#F2EBFC
border
#CCC6D5
text
#0E0716
muted
#7E7A84