#4E186F#4E186F
#4E186F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.143 H 308.9°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).
Color values
| HEX | #4E186F |
|---|---|
| RGB | rgb(78, 24, 111) |
| HSL | hsl(277, 64%, 26%) |
| HSV | hsv(277, 78%, 44%) |
| CMYK | cmyk(29.7%, 78.4%, 0%, 56.5%) |
| CIE-LAB | lab(21.66, 40.44, -39.19) |
| CIE-LCH | lch(21.66, 56.32, 315.89°) |
| OKLab | oklab(34.28% 0.0898 -0.1112) |
| OKLCH | oklch(34.28% 0.143 308.9) |
| XYZ | xyz(6.3372, 3.4208, 15.3623) |
| Luminance | 0.0342 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.18
Indigo
#4B0082
ΔE00 4.84
Indigo (survey)
#380282
ΔE00 6.78
Plum Purple
#4E0550
ΔE00 6.97
Deep Violet
#490648
ΔE00 8.36
Darkish Purple
#751973
ΔE00 8.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E186F #396F18
analogous
#23186F #4E186F #6F1865
triadic
#4E186F #6F4E18 #186F4E
tetradic
#4E186F #6F2318 #396F18 #18656F
square
#4E186F #6F2318 #396F18 #18656F
split-complementary
#4E186F #656F18 #186F23
monochromatic
#120519 #2B0D3D #4E186F #7123A1 #942FD2
Accessibility & contrast
On white
12.47
#4E186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#4E186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E186F
12.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E186F | 1.00 | 12.47 | 1.68 | 12.47 |
| #FFFFFF | 12.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#00356D
Tritanopia (blue-blind)
#492D42
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #4e186f; /* rgb */ color: rgb(78, 24, 111); /* oklch */ color: oklch(34.3% 0.143 308.9);
Tailwind
colors: {
custom: {
50: '#835b99',
500: '#4e186f',
950: '#000000',
},
}SCSS
$custom: #4e186f; $custom-light: #835b99; $custom-dark: #000000;
JSON
{
"hex": "#4e186f",
"rgb": {
"r": 78,
"g": 24,
"b": 111
},
"hsl": {
"h": 277.241,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.34275,
"c": 0.1429,
"h": 308.9
},
"luminance": 0.03421
}Semantic roles & 50–950 ramp
primary
#4E186F
secondary
#65A53E
accent
#E74080
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E