#4C2F95#4C2F95
#4C2F95 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.158 H 290.6°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).
Color values
| HEX | #4C2F95 |
|---|---|
| RGB | rgb(76, 47, 149) |
| HSL | hsl(257, 52%, 38%) |
| HSV | hsv(257, 68%, 58%) |
| CMYK | cmyk(49%, 68.5%, 0%, 41.6%) |
| CIE-LAB | lab(28.74, 38.53, -51.59) |
| CIE-LCH | lch(28.74, 64.39, 306.75°) |
| OKLab | oklab(40.25% 0.0555 -0.1478) |
| OKLCH | oklch(40.25% 0.158 290.6) |
| XYZ | xyz(9.4203, 5.7391, 29.0393) |
| Luminance | 0.0574 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.90
Rebeccapurple
#663399
ΔE00 4.98
Blueberry
#464196
ΔE00 5.67
Indigo Blue
#3A18B1
ΔE00 6.38
Ocean Blue
#4F42B5
ΔE00 6.82
Sapphire (survey)
#2138AB
ΔE00 7.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C2F95 #78952F
analogous
#2F4595 #4C2F95 #7F2F95
triadic
#4C2F95 #954C2F #2F954C
tetradic
#4C2F95 #952F45 #78952F #2F957F
square
#4C2F95 #952F45 #78952F #2F957F
split-complementary
#4C2F95 #957F2F #45952F
monochromatic
#1D1238 #342066 #4C2F95 #643FC2 #8A6DD1
Accessibility & contrast
On white
9.78
#4C2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#4C2F95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C2F95
9.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C2F95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C2F95 | 1.00 | 9.78 | 2.15 | 9.78 |
| #FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#34485E
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #4c2f95; /* rgb */ color: rgb(76, 47, 149); /* oklch */ color: oklch(40.2% 0.158 290.6);
Tailwind
colors: {
custom: {
50: '#856ab5',
500: '#4c2f95',
950: '#000000',
},
}SCSS
$custom: #4c2f95; $custom-light: #856ab5; $custom-dark: #000000;
JSON
{
"hex": "#4c2f95",
"rgb": {
"r": 76,
"g": 47,
"b": 149
},
"hsl": {
"h": 257.059,
"s": 52.041,
"l": 38.431
},
"oklch": {
"l": 0.40246,
"c": 0.15792,
"h": 290.6
},
"luminance": 0.05739
}Semantic roles & 50–950 ramp
primary
#4C2F95
secondary
#A1B867
accent
#DB4CB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80