#4B168F#4B168F
#4B168F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.178 H 295.7°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).
Color values
| HEX | #4B168F |
|---|---|
| RGB | rgb(75, 22, 143) |
| HSL | hsl(266, 73%, 32%) |
| HSV | hsv(266, 85%, 56%) |
| CMYK | cmyk(47.6%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(23.84, 48.70, -55.91) |
| CIE-LCH | lch(23.84, 74.14, 311.05°) |
| OKLab | oklab(36.6% 0.0772 -0.1604) |
| OKLCH | oklch(36.6% 0.178 295.7) |
| XYZ | xyz(8.1451, 4.0526, 26.3344) |
| Luminance | 0.0405 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.20
Indigo (survey)
#380282
ΔE00 4.19
Indigo Blue
#3A18B1
ΔE00 5.47
Royal Purple (survey)
#4B006E
ΔE00 6.14
Ultramarine
#2000B1
ΔE00 6.77
Royal
#0C1793
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4B168F #5A8F16
analogous
#161E8F #4B168F #88168F
triadic
#4B168F #8F4B16 #168F4B
tetradic
#4B168F #8F161E #5A8F16 #168F88
square
#4B168F #8F161E #5A8F16 #168F88
split-complementary
#4B168F #8F8816 #1E8F16
monochromatic
#130625 #2F0E5A #4B168F #671EC4 #863EE1
Accessibility & contrast
On white
11.60
#4B168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#4B168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4B168F
11.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4B168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4B168F | 1.00 | 11.60 | 1.81 | 11.60 |
| #FFFFFF | 11.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#373A54
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #4b168f; /* rgb */ color: rgb(75, 22, 143); /* oklch */ color: oklch(36.6% 0.178 295.7);
Tailwind
colors: {
custom: {
50: '#855cb1',
500: '#4b168f',
950: '#000000',
},
}SCSS
$custom: #4b168f; $custom-light: #855cb1; $custom-dark: #000000;
JSON
{
"hex": "#4b168f",
"rgb": {
"r": 75,
"g": 22,
"b": 143
},
"hsl": {
"h": 266.281,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.366,
"c": 0.178,
"h": 295.7
},
"luminance": 0.04053
}Semantic roles & 50–950 ramp
primary
#4B168F
secondary
#88C13F
accent
#F0389F
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980