#4C2EB2#4C2EB2
#4C2EB2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.195 H 285.1°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).
Color values
| HEX | #4C2EB2 |
|---|---|
| RGB | rgb(76, 46, 178) |
| HSL | hsl(254, 59%, 44%) |
| HSV | hsv(254, 74%, 70%) |
| CMYK | cmyk(57.3%, 74.2%, 0%, 30.2%) |
| CIE-LAB | lab(31.12, 47.65, -65.23) |
| CIE-LCH | lch(31.12, 80.78, 306.15°) |
| OKLab | oklab(42.73% 0.0507 -0.1878) |
| OKLCH | oklch(42.73% 0.195 285.1) |
| XYZ | xyz(11.9909, 6.7041, 42.7730) |
| Luminance | 0.0670 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 4.45
Indigo Blue
#3A18B1
ΔE00 4.52
Blurple
#5539CC
ΔE00 4.64
Purple Blue
#5D21D0
ΔE00 4.76
Ocean Blue
#4F42B5
ΔE00 5.00
Violet Blue
#510AC9
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C2EB2 #94B22E
analogous
#2E52B2 #4C2EB2 #8E2EB2
triadic
#4C2EB2 #B24C2E #2EB24C
tetradic
#4C2EB2 #B22E52 #94B22E #2EB28E
square
#4C2EB2 #B22E52 #94B22E #2EB28E
split-complementary
#4C2EB2 #B28E2E #52B22E
monochromatic
#221551 #372181 #4C2EB2 #6A4CD1 #937DDD
Accessibility & contrast
On white
8.97
#4C2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#4C2EB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C2EB2
8.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C2EB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C2EB2 | 1.00 | 8.97 | 2.34 | 8.97 |
| #FFFFFF | 8.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#18536E
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #4c2eb2; /* rgb */ color: rgb(76, 46, 178); /* oklch */ color: oklch(42.7% 0.195 285.1);
Tailwind
colors: {
custom: {
50: '#896aca',
500: '#4c2eb2',
950: '#000000',
},
}SCSS
$custom: #4c2eb2; $custom-light: #896aca; $custom-dark: #000000;
JSON
{
"hex": "#4c2eb2",
"rgb": {
"r": 76,
"g": 46,
"b": 178
},
"hsl": {
"h": 253.636,
"s": 58.929,
"l": 43.922
},
"oklch": {
"l": 0.42732,
"c": 0.19453,
"h": 285.1
},
"luminance": 0.06705
}Semantic roles & 50–950 ramp
primary
#4C2EB2
secondary
#B4C676
accent
#E246BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82