#4A168F#4A168F
#4A168F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.178 H 295.2°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).
Color values
| HEX | #4A168F |
|---|---|
| RGB | rgb(74, 22, 143) |
| HSL | hsl(266, 73%, 32%) |
| HSV | hsv(266, 85%, 56%) |
| CMYK | cmyk(48.3%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(23.71, 48.56, -56.13) |
| CIE-LCH | lch(23.71, 74.22, 310.86°) |
| OKLab | oklab(36.48% 0.0756 -0.161) |
| OKLCH | oklch(36.48% 0.178 295.2) |
| XYZ | xyz(8.0675, 4.0126, 26.3307) |
| Luminance | 0.0401 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.23
Indigo (survey)
#380282
ΔE00 4.08
Indigo Blue
#3A18B1
ΔE00 5.39
Royal Purple (survey)
#4B006E
ΔE00 6.19
Ultramarine
#2000B1
ΔE00 6.65
Royal
#0C1793
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A168F #5B8F16
analogous
#161F8F #4A168F #86168F
triadic
#4A168F #8F4A16 #168F4A
tetradic
#4A168F #8F161F #5B8F16 #168F86
square
#4A168F #8F161F #5B8F16 #168F86
split-complementary
#4A168F #8F8616 #1F8F16
monochromatic
#130625 #2F0E5A #4A168F #651EC4 #843EE1
Accessibility & contrast
On white
11.65
#4A168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#4A168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A168F
11.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A168F | 1.00 | 11.65 | 1.80 | 11.65 |
| #FFFFFF | 11.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#363A54
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4a168f; /* rgb */ color: rgb(74, 22, 143); /* oklch */ color: oklch(36.5% 0.178 295.2);
Tailwind
colors: {
custom: {
50: '#855cb1',
500: '#4a168f',
950: '#000000',
},
}SCSS
$custom: #4a168f; $custom-light: #855cb1; $custom-dark: #000000;
JSON
{
"hex": "#4a168f",
"rgb": {
"r": 74,
"g": 22,
"b": 143
},
"hsl": {
"h": 265.785,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.3648,
"c": 0.17792,
"h": 295.2
},
"luminance": 0.04013
}Semantic roles & 50–950 ramp
primary
#4A168F
secondary
#8AC13F
accent
#F038A1
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980