#4A166E#4A166E
#4A166E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.143 H 307.0°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).
Color values
| HEX | #4A166E |
|---|---|
| RGB | rgb(74, 22, 110) |
| HSL | hsl(275, 67%, 26%) |
| HSV | hsv(275, 80%, 43%) |
| CMYK | cmyk(32.7%, 80%, 0%, 56.9%) |
| CIE-LAB | lab(20.66, 40.25, -40.20) |
| CIE-LCH | lch(20.66, 56.89, 315.04°) |
| OKLab | oklab(33.42% 0.086 -0.1143) |
| OKLCH | oklch(33.42% 0.143 307) |
| XYZ | xyz(5.9248, 3.1555, 15.0458) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.78
Indigo
#4B0082
ΔE00 4.48
Indigo (survey)
#380282
ΔE00 6.13
Plum Purple
#4E0550
ΔE00 7.16
Dark Indigo
#1F0954
ΔE00 8.20
Deep Violet
#490648
ΔE00 8.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A166E #3A6E16
analogous
#1E166E #4A166E #6E1666
triadic
#4A166E #6E4A16 #166E4A
tetradic
#4A166E #6E1E16 #3A6E16 #16666E
square
#4A166E #6E1E16 #3A6E16 #16666E
split-complementary
#4A166E #666E16 #166E1E
monochromatic
#11051A #280C3B #4A166E #6C20A1 #8F2AD4
Accessibility & contrast
On white
12.88
#4A166E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#4A166E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A166E
12.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A166E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A166E | 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)
#003070
Deuteranopia (green-blind)
#00326C
Tritanopia (blue-blind)
#442C41
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #4a166e; /* rgb */ color: rgb(74, 22, 110); /* oklch */ color: oklch(33.4% 0.143 307.0);
Tailwind
colors: {
custom: {
50: '#815a98',
500: '#4a166e',
950: '#000000',
},
}SCSS
$custom: #4a166e; $custom-light: #815a98; $custom-dark: #000000;
JSON
{
"hex": "#4a166e",
"rgb": {
"r": 74,
"g": 22,
"b": 110
},
"hsl": {
"h": 275.455,
"s": 66.667,
"l": 25.882
},
"oklch": {
"l": 0.33415,
"c": 0.14302,
"h": 307
},
"luminance": 0.03155
}Semantic roles & 50–950 ramp
primary
#4A166E
secondary
#66A43C
accent
#EA3E84
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E