#4C177E#4C177E
#4C177E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.159 H 301.7°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #4C177E |
|---|---|
| RGB | rgb(76, 23, 126) |
| HSL | hsl(271, 69%, 29%) |
| HSV | hsv(271, 82%, 49%) |
| CMYK | cmyk(39.7%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(22.50, 44.16, -47.44) |
| CIE-LCH | lch(22.50, 64.81, 312.95°) |
| OKLab | oklab(35.2% 0.0838 -0.1355) |
| OKLCH | oklch(35.2% 0.159 301.7) |
| XYZ | xyz(7.0519, 3.6556, 20.0687) |
| Luminance | 0.0366 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.74
Royal Purple (survey)
#4B006E
ΔE00 3.88
Indigo (survey)
#380282
ΔE00 4.57
Rebeccapurple
#663399
ΔE00 7.85
Midnight Blue
#191970
ΔE00 8.27
Indigo Blue
#3A18B1
ΔE00 8.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C177E #497E17
analogous
#19177E #4C177E #7E177D
triadic
#4C177E #7E4C17 #177E4C
tetradic
#4C177E #7E1917 #497E17 #177D7E
square
#4C177E #7E1917 #497E17 #177D7E
split-complementary
#4C177E #7D7E17 #177E19
monochromatic
#10051A #2D0E4A #4C177E #6B20B2 #8A35DA
Accessibility & contrast
On white
12.13
#4C177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#4C177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C177E
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C177E | 1.00 | 12.13 | 1.73 | 12.13 |
| #FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#41334B
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4c177e; /* rgb */ color: rgb(76, 23, 126); /* oklch */ color: oklch(35.2% 0.159 301.7);
Tailwind
colors: {
custom: {
50: '#845ba4',
500: '#4c177e',
950: '#000000',
},
}SCSS
$custom: #4c177e; $custom-light: #845ba4; $custom-dark: #000000;
JSON
{
"hex": "#4c177e",
"rgb": {
"r": 76,
"g": 23,
"b": 126
},
"hsl": {
"h": 270.874,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.35203,
"c": 0.15933,
"h": 301.7
},
"luminance": 0.03656
}Semantic roles & 50–950 ramp
primary
#4C177E
secondary
#77B33E
accent
#EC3C91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F