#4C2E9D#4C2E9D
#4C2E9D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.169 H 289.0°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).
Color values
| HEX | #4C2E9D |
|---|---|
| RGB | rgb(76, 46, 157) |
| HSL | hsl(256, 55%, 40%) |
| HSV | hsv(256, 71%, 62%) |
| CMYK | cmyk(51.6%, 70.7%, 0%, 38.4%) |
| CIE-LAB | lab(29.22, 41.45, -55.70) |
| CIE-LCH | lch(29.22, 69.43, 306.65°) |
| OKLab | oklab(40.8% 0.0552 -0.1599) |
| OKLCH | oklch(40.8% 0.169 289) |
| XYZ | xyz(10.0415, 5.9244, 32.5062) |
| Luminance | 0.0592 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 5.22
Indigo Blue
#3A18B1
ΔE00 5.37
Darkslateblue
#483D8B
ΔE00 5.72
Blueberry
#464196
ΔE00 6.02
Ocean Blue
#4F42B5
ΔE00 6.19
Blue With A Hint Of Purple
#533CC6
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C2E9D #7F9D2E
analogous
#2E489D #4C2E9D #832E9D
triadic
#4C2E9D #9D4C2E #2E9D4C
tetradic
#4C2E9D #9D2E48 #7F9D2E #2E9D83
square
#4C2E9D #9D2E48 #7F9D2E #2E9D83
split-complementary
#4C2E9D #9D832E #489D2E
monochromatic
#1E123E #35206E #4C2E9D #6541C7 #8C70D5
Accessibility & contrast
On white
9.61
#4C2E9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#4C2E9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C2E9D
9.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C2E9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C2E9D | 1.00 | 9.61 | 2.19 | 9.61 |
| #FFFFFF | 9.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#2F4B62
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #4c2e9d; /* rgb */ color: rgb(76, 46, 157); /* oklch */ color: oklch(40.8% 0.169 289.0);
Tailwind
colors: {
custom: {
50: '#8669bb',
500: '#4c2e9d',
950: '#000000',
},
}SCSS
$custom: #4c2e9d; $custom-light: #8669bb; $custom-dark: #000000;
JSON
{
"hex": "#4c2e9d",
"rgb": {
"r": 76,
"g": 46,
"b": 157
},
"hsl": {
"h": 256.216,
"s": 54.68,
"l": 39.804
},
"oklch": {
"l": 0.40798,
"c": 0.16915,
"h": 289
},
"luminance": 0.05925
}Semantic roles & 50–950 ramp
primary
#4C2E9D
secondary
#A6BD6A
accent
#DE4AB6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81