#4C157C#4C157C
#4C157C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.159 H 302.7°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).
Color values
| HEX | #4C157C |
|---|---|
| RGB | rgb(76, 21, 124) |
| HSL | hsl(272, 71%, 28%) |
| HSV | hsv(272, 83%, 49%) |
| CMYK | cmyk(38.7%, 83.1%, 0%, 51.4%) |
| CIE-LAB | lab(22.05, 44.45, -46.91) |
| CIE-LCH | lch(22.05, 64.63, 313.46°) |
| OKLab | oklab(34.83% 0.0861 -0.1339) |
| OKLCH | oklch(34.83% 0.159 302.7) |
| XYZ | xyz(6.8859, 3.5281, 19.3831) |
| Luminance | 0.0353 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.58
Royal Purple (survey)
#4B006E
ΔE00 3.41
Indigo (survey)
#380282
ΔE00 4.54
Rebeccapurple
#663399
ΔE00 8.19
Midnight Blue
#191970
ΔE00 8.36
Indigo Blue
#3A18B1
ΔE00 8.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C157C #457C15
analogous
#19157C #4C157C #7C1578
triadic
#4C157C #7C4C15 #157C4C
tetradic
#4C157C #7C1915 #457C15 #15787C
square
#4C157C #7C1915 #457C15 #15787C
split-complementary
#4C157C #787C15 #157C19
monochromatic
#10041A #2C0C48 #4C157C #6C1EB0 #8C30DC
Accessibility & contrast
On white
12.31
#4C157C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#4C157C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C157C
12.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C157C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C157C | 1.00 | 12.31 | 1.71 | 12.31 |
| #FFFFFF | 12.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#423149
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4c157c; /* rgb */ color: rgb(76, 21, 124); /* oklch */ color: oklch(34.8% 0.159 302.7);
Tailwind
colors: {
custom: {
50: '#835aa3',
500: '#4c157c',
950: '#000000',
},
}SCSS
$custom: #4c157c; $custom-light: #835aa3; $custom-dark: #000000;
JSON
{
"hex": "#4c157c",
"rgb": {
"r": 76,
"g": 21,
"b": 124
},
"hsl": {
"h": 272.039,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.34832,
"c": 0.1592,
"h": 302.7
},
"luminance": 0.03528
}Semantic roles & 50–950 ramp
primary
#4C157C
secondary
#72B13C
accent
#EE3A8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F