#4A177E#4A177E
#4A177E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.159 H 300.5°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).
Color values
| HEX | #4A177E |
|---|---|
| RGB | rgb(74, 23, 126) |
| HSL | hsl(270, 69%, 29%) |
| HSV | hsv(270, 82%, 49%) |
| CMYK | cmyk(41.3%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(22.21, 43.82, -47.92) |
| CIE-LCH | lch(22.21, 64.94, 312.44°) |
| OKLab | oklab(34.94% 0.0807 -0.137) |
| OKLCH | oklch(34.94% 0.159 300.5) |
| XYZ | xyz(6.8954, 3.5749, 20.0614) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.70
Royal Purple (survey)
#4B006E
ΔE00 3.97
Indigo (survey)
#380282
ΔE00 4.28
Midnight Blue
#191970
ΔE00 7.90
Rebeccapurple
#663399
ΔE00 8.04
Indigo Blue
#3A18B1
ΔE00 8.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A177E #4B7E17
analogous
#17177E #4A177E #7E177E
triadic
#4A177E #7E4A17 #177E4A
tetradic
#4A177E #7E1717 #4B7E17 #177E7E
square
#4A177E #7E1717 #4B7E17 #177E7E
split-complementary
#4A177E #7E7E17 #177E17
monochromatic
#0F051A #2C0E4A #4A177E #6820B2 #8735DA
Accessibility & contrast
On white
12.24
#4A177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#4A177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A177E
12.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A177E | 1.00 | 12.24 | 1.72 | 12.24 |
| #FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#3E334B
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4a177e; /* rgb */ color: rgb(74, 23, 126); /* oklch */ color: oklch(34.9% 0.159 300.5);
Tailwind
colors: {
custom: {
50: '#825ba4',
500: '#4a177e',
950: '#000000',
},
}SCSS
$custom: #4a177e; $custom-light: #825ba4; $custom-dark: #000000;
JSON
{
"hex": "#4a177e",
"rgb": {
"r": 74,
"g": 23,
"b": 126
},
"hsl": {
"h": 269.709,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.34943,
"c": 0.15897,
"h": 300.5
},
"luminance": 0.03575
}Semantic roles & 50–950 ramp
primary
#4A177E
secondary
#79B33E
accent
#EC3C95
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F