#4C156B#4C156B
#4C156B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.142 H 309.8°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).
Color values
| HEX | #4C156B |
|---|---|
| RGB | rgb(76, 21, 107) |
| HSL | hsl(278, 67%, 25%) |
| HSV | hsv(278, 80%, 42%) |
| CMYK | cmyk(29%, 80.4%, 0%, 58%) |
| CIE-LAB | lab(20.57, 40.35, -38.37) |
| CIE-LCH | lch(20.57, 55.68, 316.44°) |
| OKLab | oklab(33.35% 0.0906 -0.1088) |
| OKLCH | oklch(33.35% 0.142 309.8) |
| XYZ | xyz(5.9020, 3.1345, 14.2012) |
| Luminance | 0.0313 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.80
Indigo
#4B0082
ΔE00 5.05
Plum Purple
#4E0550
ΔE00 6.33
Indigo (survey)
#380282
ΔE00 6.85
Deep Violet
#490648
ΔE00 7.69
Dark Indigo
#1F0954
ΔE00 8.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C156B #346B15
analogous
#21156B #4C156B #6B155F
triadic
#4C156B #6B4C15 #156B4C
tetradic
#4C156B #6B2115 #346B15 #155F6B
square
#4C156B #6B2115 #346B15 #155F6B
split-complementary
#4C156B #5F6B15 #156B21
monochromatic
#12051A #280B38 #4C156B #701F9E #9529D1
Accessibility & contrast
On white
12.91
#4C156B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#4C156B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C156B
12.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C156B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C156B | 1.00 | 12.91 | 1.63 | 12.91 |
| #FFFFFF | 12.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#472A3F
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #4c156b; /* rgb */ color: rgb(76, 21, 107); /* oklch */ color: oklch(33.3% 0.142 309.8);
Tailwind
colors: {
custom: {
50: '#825996',
500: '#4c156b',
950: '#000000',
},
}SCSS
$custom: #4c156b; $custom-light: #825996; $custom-dark: #000000;
JSON
{
"hex": "#4c156b",
"rgb": {
"r": 76,
"g": 21,
"b": 107
},
"hsl": {
"h": 278.372,
"s": 67.188,
"l": 25.098
},
"oklch": {
"l": 0.33345,
"c": 0.1416,
"h": 309.8
},
"luminance": 0.03134
}Semantic roles & 50–950 ramp
primary
#4C156B
secondary
#5FA23A
accent
#EA3E7C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E