#4A166B#4A166B
#4A166B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.140 H 308.3°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).
Color values
| HEX | #4A166B |
|---|---|
| RGB | rgb(74, 22, 107) |
| HSL | hsl(277, 66%, 25%) |
| HSV | hsv(277, 79%, 42%) |
| CMYK | cmyk(30.8%, 79.4%, 0%, 58%) |
| CIE-LAB | lab(20.41, 39.52, -38.66) |
| CIE-LCH | lch(20.41, 55.28, 315.63°) |
| OKLab | oklab(33.16% 0.0867 -0.1097) |
| OKLCH | oklch(33.16% 0.14 308.3) |
| XYZ | xyz(5.7642, 3.0913, 14.2001) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.93
Indigo
#4B0082
ΔE00 5.01
Plum Purple
#4E0550
ΔE00 6.61
Indigo (survey)
#380282
ΔE00 6.63
Deep Violet
#490648
ΔE00 7.91
Dark Indigo
#1F0954
ΔE00 8.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A166B #376B16
analogous
#20166B #4A166B #6B1661
triadic
#4A166B #6B4A16 #166B4A
tetradic
#4A166B #6B2016 #376B16 #16616B
square
#4A166B #6B2016 #376B16 #16616B
split-complementary
#4A166B #616B16 #166B20
monochromatic
#120519 #270C38 #4A166B #6D209E #902BD1
Accessibility & contrast
On white
12.98
#4A166B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#4A166B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A166B
12.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A166B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A166B | 1.00 | 12.98 | 1.62 | 12.98 |
| #FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#452B40
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #4a166b; /* rgb */ color: rgb(74, 22, 107); /* oklch */ color: oklch(33.2% 0.140 308.3);
Tailwind
colors: {
custom: {
50: '#805996',
500: '#4a166b',
950: '#000000',
},
}SCSS
$custom: #4a166b; $custom-light: #805996; $custom-dark: #000000;
JSON
{
"hex": "#4a166b",
"rgb": {
"r": 74,
"g": 22,
"b": 107
},
"hsl": {
"h": 276.706,
"s": 65.891,
"l": 25.294
},
"oklch": {
"l": 0.3316,
"c": 0.13984,
"h": 308.3
},
"luminance": 0.03091
}Semantic roles & 50–950 ramp
primary
#4A166B
secondary
#63A13B
accent
#E93F81
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E