#4A176C#4A176C
#4A176C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.140 H 307.7°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).
Color values
| HEX | #4A176C |
|---|---|
| RGB | rgb(74, 23, 108) |
| HSL | hsl(276, 65%, 26%) |
| HSV | hsv(276, 79%, 42%) |
| CMYK | cmyk(31.5%, 78.7%, 0%, 57.6%) |
| CIE-LAB | lab(20.64, 39.33, -38.93) |
| CIE-LCH | lch(20.64, 55.34, 315.30°) |
| OKLab | oklab(33.35% 0.0854 -0.1105) |
| OKLCH | oklch(33.35% 0.14 307.7) |
| XYZ | xyz(5.8366, 3.1514, 14.4853) |
| Luminance | 0.0315 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.05
Indigo
#4B0082
ΔE00 4.95
Indigo (survey)
#380282
ΔE00 6.56
Plum Purple
#4E0550
ΔE00 6.83
Deep Violet
#490648
ΔE00 8.13
Dark Indigo
#1F0954
ΔE00 8.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A176C #396C17
analogous
#1F176C #4A176C #6C1763
triadic
#4A176C #6C4A17 #176C4A
tetradic
#4A176C #6C1F17 #396C17 #17636C
square
#4A176C #6C1F17 #396C17 #17636C
split-complementary
#4A176C #636C17 #176C1F
monochromatic
#110519 #270C3A #4A176C #6D229E #8F2CD1
Accessibility & contrast
On white
12.88
#4A176C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#4A176C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A176C
12.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A176C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A176C | 1.00 | 12.88 | 1.63 | 12.88 |
| #FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00326A
Tritanopia (blue-blind)
#442C40
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #4a176c; /* rgb */ color: rgb(74, 23, 108); /* oklch */ color: oklch(33.4% 0.140 307.7);
Tailwind
colors: {
custom: {
50: '#805a97',
500: '#4a176c',
950: '#000000',
},
}SCSS
$custom: #4a176c; $custom-light: #805a97; $custom-dark: #000000;
JSON
{
"hex": "#4a176c",
"rgb": {
"r": 74,
"g": 23,
"b": 108
},
"hsl": {
"h": 276,
"s": 64.885,
"l": 25.686
},
"oklch": {
"l": 0.33352,
"c": 0.13972,
"h": 307.7
},
"luminance": 0.03151
}Semantic roles & 50–950 ramp
primary
#4A176C
secondary
#65A23D
accent
#E84083
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E