#4C2F99#4C2F99
#4C2F99 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.163 H 289.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).
Color values
| HEX | #4C2F99 |
|---|---|
| RGB | rgb(76, 47, 153) |
| HSL | hsl(256, 53%, 39%) |
| HSV | hsv(256, 69%, 60%) |
| CMYK | cmyk(50.3%, 69.3%, 0%, 40%) |
| CIE-LAB | lab(29.08, 39.71, -53.49) |
| CIE-LCH | lch(29.08, 66.62, 306.59°) |
| OKLab | oklab(40.59% 0.0549 -0.1534) |
| OKLCH | oklch(40.59% 0.163 289.7) |
| XYZ | xyz(9.7451, 5.8690, 30.7502) |
| Luminance | 0.0587 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 5.06
Darkslateblue
#483D8B
ΔE00 5.19
Blueberry
#464196
ΔE00 5.70
Indigo Blue
#3A18B1
ΔE00 5.94
Ocean Blue
#4F42B5
ΔE00 6.39
Sapphire (survey)
#2138AB
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C2F99 #7C992F
analogous
#2F4799 #4C2F99 #812F99
triadic
#4C2F99 #994C2F #2F994C
tetradic
#4C2F99 #992F47 #7C992F #2F9981
square
#4C2F99 #992F47 #7C992F #2F9981
split-complementary
#4C2F99 #99812F #47992F
monochromatic
#1D123B #35216A #4C2F99 #6541C5 #8B6FD3
Accessibility & contrast
On white
9.66
#4C2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#4C2F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C2F99
9.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C2F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C2F99 | 1.00 | 9.66 | 2.17 | 9.66 |
| #FFFFFF | 9.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#324A60
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #4c2f99; /* rgb */ color: rgb(76, 47, 153); /* oklch */ color: oklch(40.6% 0.163 289.7);
Tailwind
colors: {
custom: {
50: '#856ab8',
500: '#4c2f99',
950: '#000000',
},
}SCSS
$custom: #4c2f99; $custom-light: #856ab8; $custom-dark: #000000;
JSON
{
"hex": "#4c2f99",
"rgb": {
"r": 76,
"g": 47,
"b": 153
},
"hsl": {
"h": 256.415,
"s": 53,
"l": 39.216
},
"oklch": {
"l": 0.40591,
"c": 0.16295,
"h": 289.7
},
"luminance": 0.05869
}Semantic roles & 50–950 ramp
primary
#4C2F99
secondary
#A4BA69
accent
#DC4BB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80