#4D176F#4D176F
#4D176F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.144 H 308.4°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).
Color values
| HEX | #4D176F |
|---|---|
| RGB | rgb(77, 23, 111) |
| HSL | hsl(277, 66%, 26%) |
| HSV | hsv(277, 79%, 44%) |
| CMYK | cmyk(30.6%, 79.3%, 0%, 56.5%) |
| CIE-LAB | lab(21.35, 40.66, -39.70) |
| CIE-LCH | lch(21.35, 56.83, 315.69°) |
| OKLab | oklab(34.03% 0.0893 -0.1127) |
| OKLCH | oklch(34.03% 0.144 308.4) |
| XYZ | xyz(6.2356, 3.3384, 15.3517) |
| Luminance | 0.0334 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.96
Indigo
#4B0082
ΔE00 4.64
Indigo (survey)
#380282
ΔE00 6.52
Plum Purple
#4E0550
ΔE00 7.04
Deep Violet
#490648
ΔE00 8.42
Darkish Purple
#751973
ΔE00 8.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D176F #396F17
analogous
#21176F #4D176F #6F1765
triadic
#4D176F #6F4D17 #176F4D
tetradic
#4D176F #6F2117 #396F17 #17656F
square
#4D176F #6F2117 #396F17 #17656F
split-complementary
#4D176F #656F17 #176F21
monochromatic
#120519 #2A0C3C #4D176F #7022A2 #932DD3
Accessibility & contrast
On white
12.59
#4D176F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#4D176F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D176F
12.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D176F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D176F | 1.00 | 12.59 | 1.67 | 12.59 |
| #FFFFFF | 12.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#482C42
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #4d176f; /* rgb */ color: rgb(77, 23, 111); /* oklch */ color: oklch(34.0% 0.144 308.4);
Tailwind
colors: {
custom: {
50: '#835b99',
500: '#4d176f',
950: '#000000',
},
}SCSS
$custom: #4d176f; $custom-light: #835b99; $custom-dark: #000000;
JSON
{
"hex": "#4d176f",
"rgb": {
"r": 77,
"g": 23,
"b": 111
},
"hsl": {
"h": 276.818,
"s": 65.672,
"l": 26.275
},
"oklch": {
"l": 0.34027,
"c": 0.14378,
"h": 308.4
},
"luminance": 0.03338
}Semantic roles & 50–950 ramp
primary
#4D176F
secondary
#65A53D
accent
#E93F81
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E