#4D176C#4D176C
#4D176C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.141 H 309.7°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).
Color values
| HEX | #4D176C |
|---|---|
| RGB | rgb(77, 23, 108) |
| HSL | hsl(278, 65%, 26%) |
| HSV | hsv(278, 79%, 42%) |
| CMYK | cmyk(28.7%, 78.7%, 0%, 57.6%) |
| CIE-LAB | lab(21.11, 39.95, -38.15) |
| CIE-LCH | lch(21.11, 55.24, 316.32°) |
| OKLab | oklab(33.78% 0.0899 -0.1081) |
| OKLCH | oklch(33.78% 0.141 309.7) |
| XYZ | xyz(6.0732, 3.2734, 14.4963) |
| Luminance | 0.0327 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.12
Indigo
#4B0082
ΔE00 5.16
Plum Purple
#4E0550
ΔE00 6.48
Indigo (survey)
#380282
ΔE00 7.01
Deep Violet
#490648
ΔE00 7.84
Darkish Purple
#751973
ΔE00 8.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D176C #366C17
analogous
#23176C #4D176C #6C1760
triadic
#4D176C #6C4D17 #176C4D
tetradic
#4D176C #6C2317 #366C17 #17606C
square
#4D176C #6C2317 #366C17 #17606C
split-complementary
#4D176C #606C17 #176C23
monochromatic
#120519 #290C3A #4D176C #71229E #952CD1
Accessibility & contrast
On white
12.69
#4D176C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#4D176C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D176C
12.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D176C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D176C | 1.00 | 12.69 | 1.65 | 12.69 |
| #FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#01336A
Tritanopia (blue-blind)
#482B40
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #4d176c; /* rgb */ color: rgb(77, 23, 108); /* oklch */ color: oklch(33.8% 0.141 309.7);
Tailwind
colors: {
custom: {
50: '#835a97',
500: '#4d176c',
950: '#000000',
},
}SCSS
$custom: #4d176c; $custom-light: #835a97; $custom-dark: #000000;
JSON
{
"hex": "#4d176c",
"rgb": {
"r": 77,
"g": 23,
"b": 108
},
"hsl": {
"h": 278.118,
"s": 64.885,
"l": 25.686
},
"oklch": {
"l": 0.33779,
"c": 0.14063,
"h": 309.7
},
"luminance": 0.03273
}Semantic roles & 50–950 ramp
primary
#4D176C
secondary
#62A23D
accent
#E8407D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E