#4A167F#4A167F
#4A167F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.161 H 300.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).
Color values
| HEX | #4A167F |
|---|---|
| RGB | rgb(74, 22, 127) |
| HSL | hsl(270, 70%, 29%) |
| HSV | hsv(270, 83%, 50%) |
| CMYK | cmyk(41.7%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(22.17, 44.48, -48.63) |
| CIE-LCH | lch(22.17, 65.90, 312.45°) |
| OKLab | oklab(34.94% 0.0812 -0.1391) |
| OKLCH | oklch(34.94% 0.161 300.3) |
| XYZ | xyz(6.9408, 3.5619, 20.3964) |
| Luminance | 0.0356 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.50
Royal Purple (survey)
#4B006E
ΔE00 3.99
Indigo (survey)
#380282
ΔE00 4.11
Midnight Blue
#191970
ΔE00 7.92
Indigo Blue
#3A18B1
ΔE00 7.94
Royal
#0C1793
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A167F #4B7F16
analogous
#16177F #4A167F #7F167F
triadic
#4A167F #7F4A16 #167F4A
tetradic
#4A167F #7F1617 #4B7F16 #167F7F
square
#4A167F #7F1617 #4B7F16 #167F7F
split-complementary
#4A167F #7F7F16 #177F16
monochromatic
#0F051A #2C0D4B #4A167F #681FB3 #8734DC
Accessibility & contrast
On white
12.26
#4A167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#4A167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A167F
12.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A167F | 1.00 | 12.26 | 1.71 | 12.26 |
| #FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#3E334B
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4a167f; /* rgb */ color: rgb(74, 22, 127); /* oklch */ color: oklch(34.9% 0.161 300.3);
Tailwind
colors: {
custom: {
50: '#825ba5',
500: '#4a167f',
950: '#000000',
},
}SCSS
$custom: #4a167f; $custom-light: #825ba5; $custom-dark: #000000;
JSON
{
"hex": "#4a167f",
"rgb": {
"r": 74,
"g": 22,
"b": 127
},
"hsl": {
"h": 269.714,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.34939,
"c": 0.16102,
"h": 300.3
},
"luminance": 0.03562
}Semantic roles & 50–950 ramp
primary
#4A167F
secondary
#79B43D
accent
#ED3B95
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F