#4D167C#4D167C
#4D167C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.158 H 303.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).
Color values
| HEX | #4D167C |
|---|---|
| RGB | rgb(77, 22, 124) |
| HSL | hsl(272, 70%, 29%) |
| HSV | hsv(272, 82%, 49%) |
| CMYK | cmyk(37.9%, 82.3%, 0%, 51.4%) |
| CIE-LAB | lab(22.33, 44.23, -46.45) |
| CIE-LCH | lch(22.33, 64.14, 313.60°) |
| OKLab | oklab(35.06% 0.0868 -0.1325) |
| OKLCH | oklch(35.06% 0.158 303.2) |
| XYZ | xyz(6.9847, 3.6068, 19.3931) |
| Luminance | 0.0361 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.78
Royal Purple (survey)
#4B006E
ΔE00 3.49
Indigo (survey)
#380282
ΔE00 4.79
Rebeccapurple
#663399
ΔE00 8.00
Midnight Blue
#191970
ΔE00 8.52
Indigo Blue
#3A18B1
ΔE00 8.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D167C #457C16
analogous
#1A167C #4D167C #7C1678
triadic
#4D167C #7C4D16 #167C4D
tetradic
#4D167C #7C1A16 #457C16 #16787C
square
#4D167C #7C1A16 #457C16 #16787C
split-complementary
#4D167C #787C16 #167C1A
monochromatic
#10051A #2D0D48 #4D167C #6D1FB0 #8D32DB
Accessibility & contrast
On white
12.20
#4D167C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#4D167C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D167C
12.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D167C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D167C | 1.00 | 12.20 | 1.72 | 12.20 |
| #FFFFFF | 12.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#433249
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4d167c; /* rgb */ color: rgb(77, 22, 124); /* oklch */ color: oklch(35.1% 0.158 303.2);
Tailwind
colors: {
custom: {
50: '#845ba3',
500: '#4d167c',
950: '#000000',
},
}SCSS
$custom: #4d167c; $custom-light: #845ba3; $custom-dark: #000000;
JSON
{
"hex": "#4d167c",
"rgb": {
"r": 77,
"g": 22,
"b": 124
},
"hsl": {
"h": 272.353,
"s": 69.863,
"l": 28.627
},
"oklch": {
"l": 0.35059,
"c": 0.15843,
"h": 303.2
},
"luminance": 0.03607
}Semantic roles & 50–950 ramp
primary
#4D167C
secondary
#72B13D
accent
#ED3B8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F