#4E186E#4E186E
#4E186E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.142 H 309.4°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).
Color values
| HEX | #4E186E |
|---|---|
| RGB | rgb(78, 24, 110) |
| HSL | hsl(278, 64%, 26%) |
| HSV | hsv(278, 78%, 43%) |
| CMYK | cmyk(29.1%, 78.2%, 0%, 56.9%) |
| CIE-LAB | lab(21.58, 40.20, -38.68) |
| CIE-LCH | lch(21.58, 55.78, 316.10°) |
| OKLab | oklab(34.19% 0.09 -0.1097) |
| OKLCH | oklch(34.19% 0.142 309.4) |
| XYZ | xyz(6.2824, 3.3989, 15.0739) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.22
Indigo
#4B0082
ΔE00 5.01
Plum Purple
#4E0550
ΔE00 6.79
Indigo (survey)
#380282
ΔE00 6.94
Deep Violet
#490648
ΔE00 8.17
Darkish Purple
#751973
ΔE00 8.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E186E #386E18
analogous
#23186E #4E186E #6E1863
triadic
#4E186E #6E4E18 #186E4E
tetradic
#4E186E #6E2318 #386E18 #18636E
square
#4E186E #6E2318 #386E18 #18636E
split-complementary
#4E186E #636E18 #186E23
monochromatic
#120519 #2A0D3C #4E186E #7223A0 #952FD2
Accessibility & contrast
On white
12.50
#4E186E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#4E186E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E186E
12.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E186E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E186E | 1.00 | 12.50 | 1.68 | 12.50 |
| #FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#01346C
Tritanopia (blue-blind)
#492C42
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #4e186e; /* rgb */ color: rgb(78, 24, 110); /* oklch */ color: oklch(34.2% 0.142 309.4);
Tailwind
colors: {
custom: {
50: '#835b98',
500: '#4e186e',
950: '#000000',
},
}SCSS
$custom: #4e186e; $custom-light: #835b98; $custom-dark: #000000;
JSON
{
"hex": "#4e186e",
"rgb": {
"r": 78,
"g": 24,
"b": 110
},
"hsl": {
"h": 277.674,
"s": 64.179,
"l": 26.275
},
"oklch": {
"l": 0.34192,
"c": 0.14185,
"h": 309.4
},
"luminance": 0.03399
}Semantic roles & 50–950 ramp
primary
#4E186E
secondary
#64A43E
accent
#E7417F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E