#4C156F#4C156F
#4C156F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.146 H 308.0°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).
Color values
| HEX | #4C156F |
|---|---|
| RGB | rgb(76, 21, 111) |
| HSL | hsl(277, 68%, 26%) |
| HSV | hsv(277, 81%, 44%) |
| CMYK | cmyk(31.5%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(20.91, 41.30, -40.43) |
| CIE-LCH | lch(20.91, 57.79, 315.61°) |
| OKLab | oklab(33.68% 0.0897 -0.1149) |
| OKLCH | oklch(33.68% 0.146 308) |
| XYZ | xyz(6.1173, 3.2206, 15.3352) |
| Luminance | 0.0322 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.59
Indigo
#4B0082
ΔE00 4.34
Indigo (survey)
#380282
ΔE00 6.19
Plum Purple
#4E0550
ΔE00 7.08
Deep Violet
#490648
ΔE00 8.47
Dark Indigo
#1F0954
ΔE00 8.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C156F #386F15
analogous
#1F156F #4C156F #6F1565
triadic
#4C156F #6F4C15 #156F4C
tetradic
#4C156F #6F1F15 #386F15 #15656F
square
#4C156F #6F1F15 #386F15 #15656F
split-complementary
#4C156F #656F15 #156F1F
monochromatic
#12051A #290B3C #4C156F #6F1FA2 #9228D6
Accessibility & contrast
On white
12.77
#4C156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#4C156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C156F
12.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C156F | 1.00 | 12.77 | 1.64 | 12.77 |
| #FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#462C42
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #4c156f; /* rgb */ color: rgb(76, 21, 111); /* oklch */ color: oklch(33.7% 0.146 308.0);
Tailwind
colors: {
custom: {
50: '#825999',
500: '#4c156f',
950: '#000000',
},
}SCSS
$custom: #4c156f; $custom-light: #825999; $custom-dark: #000000;
JSON
{
"hex": "#4c156f",
"rgb": {
"r": 76,
"g": 21,
"b": 111
},
"hsl": {
"h": 276.667,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.33682,
"c": 0.14574,
"h": 308
},
"luminance": 0.03221
}Semantic roles & 50–950 ramp
primary
#4C156F
secondary
#64A53A
accent
#EB3D81
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E