#4B166E#4B166E
#4B166E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.143 H 307.6°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).
Color values
| HEX | #4B166E |
|---|---|
| RGB | rgb(75, 22, 110) |
| HSL | hsl(276, 67%, 26%) |
| HSV | hsv(276, 80%, 43%) |
| CMYK | cmyk(31.8%, 80%, 0%, 56.9%) |
| CIE-LAB | lab(20.81, 40.45, -39.94) |
| CIE-LCH | lch(20.81, 56.84, 315.36°) |
| OKLab | oklab(33.56% 0.0875 -0.1135) |
| OKLCH | oklch(33.56% 0.143 307.6) |
| XYZ | xyz(6.0024, 3.1955, 15.0494) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.78
Indigo
#4B0082
ΔE00 4.55
Indigo (survey)
#380282
ΔE00 6.28
Plum Purple
#4E0550
ΔE00 7.04
Dark Indigo
#1F0954
ΔE00 8.38
Deep Violet
#490648
ΔE00 8.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4B166E #396E16
analogous
#1F166E #4B166E #6E1665
triadic
#4B166E #6E4B16 #166E4B
tetradic
#4B166E #6E1F16 #396E16 #16656E
square
#4B166E #6E1F16 #396E16 #16656E
split-complementary
#4B166E #656E16 #166E1F
monochromatic
#11051A #280C3B #4B166E #6E20A1 #912AD4
Accessibility & contrast
On white
12.81
#4B166E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#4B166E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4B166E
12.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4B166E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4B166E | 1.00 | 12.81 | 1.64 | 12.81 |
| #FFFFFF | 12.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00326C
Tritanopia (blue-blind)
#452C41
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #4b166e; /* rgb */ color: rgb(75, 22, 110); /* oklch */ color: oklch(33.6% 0.143 307.6);
Tailwind
colors: {
custom: {
50: '#815a98',
500: '#4b166e',
950: '#000000',
},
}SCSS
$custom: #4b166e; $custom-light: #815a98; $custom-dark: #000000;
JSON
{
"hex": "#4b166e",
"rgb": {
"r": 75,
"g": 22,
"b": 110
},
"hsl": {
"h": 276.136,
"s": 66.667,
"l": 25.882
},
"oklch": {
"l": 0.33556,
"c": 0.14329,
"h": 307.6
},
"luminance": 0.03195
}Semantic roles & 50–950 ramp
primary
#4B166E
secondary
#65A43C
accent
#EA3E82
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E