#4B167F#4B167F
#4B167F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.161 H 300.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).
Color values
| HEX | #4B167F |
|---|---|
| RGB | rgb(75, 22, 127) |
| HSL | hsl(270, 70%, 29%) |
| HSV | hsv(270, 83%, 50%) |
| CMYK | cmyk(40.9%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(22.31, 44.64, -48.39) |
| CIE-LCH | lch(22.31, 65.84, 312.69°) |
| OKLab | oklab(35.07% 0.0828 -0.1383) |
| OKLCH | oklch(35.07% 0.161 300.9) |
| XYZ | xyz(7.0184, 3.6019, 20.4000) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.51
Royal Purple (survey)
#4B006E
ΔE00 3.93
Indigo (survey)
#380282
ΔE00 4.25
Rebeccapurple
#663399
ΔE00 7.99
Indigo Blue
#3A18B1
ΔE00 8.02
Midnight Blue
#191970
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4B167F #4A7F16
analogous
#17167F #4B167F #7F167F
triadic
#4B167F #7F4B16 #167F4B
tetradic
#4B167F #7F1716 #4A7F16 #167F7F
square
#4B167F #7F1716 #4A7F16 #167F7F
split-complementary
#4B167F #7F7F16 #167F17
monochromatic
#0F051A #2C0D4B #4B167F #6A1FB3 #8934DC
Accessibility & contrast
On white
12.21
#4B167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#4B167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4B167F
12.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4B167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4B167F | 1.00 | 12.21 | 1.72 | 12.21 |
| #FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#3F334B
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4b167f; /* rgb */ color: rgb(75, 22, 127); /* oklch */ color: oklch(35.1% 0.161 300.9);
Tailwind
colors: {
custom: {
50: '#835ba5',
500: '#4b167f',
950: '#000000',
},
}SCSS
$custom: #4b167f; $custom-light: #835ba5; $custom-dark: #000000;
JSON
{
"hex": "#4b167f",
"rgb": {
"r": 75,
"g": 22,
"b": 127
},
"hsl": {
"h": 270.286,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.35069,
"c": 0.16119,
"h": 300.9
},
"luminance": 0.03602
}Semantic roles & 50–950 ramp
primary
#4B167F
secondary
#78B43D
accent
#ED3B93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F