#4D186F#4D186F
#4D186F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.143 H 308.2°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).
Color values
| HEX | #4D186F |
|---|---|
| RGB | rgb(77, 24, 111) |
| HSL | hsl(277, 64%, 26%) |
| HSV | hsv(277, 78%, 44%) |
| CMYK | cmyk(30.6%, 78.4%, 0%, 56.5%) |
| CIE-LAB | lab(21.50, 40.23, -39.45) |
| CIE-LCH | lch(21.50, 56.35, 315.56°) |
| OKLab | oklab(34.13% 0.0883 -0.112) |
| OKLCH | oklch(34.13% 0.143 308.2) |
| XYZ | xyz(6.2558, 3.3788, 15.3585) |
| Luminance | 0.0338 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.14
Indigo
#4B0082
ΔE00 4.76
Indigo (survey)
#380282
ΔE00 6.62
Plum Purple
#4E0550
ΔE00 7.08
Deep Violet
#490648
ΔE00 8.45
Darkish Purple
#751973
ΔE00 8.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D186F #3A6F18
analogous
#22186F #4D186F #6F1866
triadic
#4D186F #6F4D18 #186F4D
tetradic
#4D186F #6F2218 #3A6F18 #18666F
square
#4D186F #6F2218 #3A6F18 #18666F
split-complementary
#4D186F #666F18 #186F22
monochromatic
#110519 #2A0D3D #4D186F #7023A1 #922FD2
Accessibility & contrast
On white
12.53
#4D186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#4D186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D186F
12.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D186F | 1.00 | 12.53 | 1.68 | 12.53 |
| #FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#482D42
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #4d186f; /* rgb */ color: rgb(77, 24, 111); /* oklch */ color: oklch(34.1% 0.143 308.2);
Tailwind
colors: {
custom: {
50: '#835b99',
500: '#4d186f',
950: '#000000',
},
}SCSS
$custom: #4d186f; $custom-light: #835b99; $custom-dark: #000000;
JSON
{
"hex": "#4d186f",
"rgb": {
"r": 77,
"g": 24,
"b": 111
},
"hsl": {
"h": 276.552,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.34133,
"c": 0.1426,
"h": 308.2
},
"luminance": 0.03379
}Semantic roles & 50–950 ramp
primary
#4D186F
secondary
#66A53E
accent
#E74082
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E