#4E156F#4E156F
#4E156F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.146 H 309.3°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).
Color values
| HEX | #4E156F |
|---|---|
| RGB | rgb(78, 21, 111) |
| HSL | hsl(278, 68%, 26%) |
| HSV | hsv(278, 81%, 44%) |
| CMYK | cmyk(29.7%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(21.22, 41.68, -39.90) |
| CIE-LCH | lch(21.22, 57.70, 316.25°) |
| OKLab | oklab(33.97% 0.0927 -0.1132) |
| OKLCH | oklch(33.97% 0.146 309.3) |
| XYZ | xyz(6.2787, 3.3039, 15.3428) |
| Luminance | 0.0330 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.67
Indigo
#4B0082
ΔE00 4.51
Indigo (survey)
#380282
ΔE00 6.51
Plum Purple
#4E0550
ΔE00 6.87
Deep Violet
#490648
ΔE00 8.30
Darkish Purple
#751973
ΔE00 8.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E156F #366F15
analogous
#21156F #4E156F #6F1563
triadic
#4E156F #6F4E15 #156F4E
tetradic
#4E156F #6F2115 #366F15 #15636F
square
#4E156F #6F2115 #366F15 #15636F
split-complementary
#4E156F #636F15 #156F21
monochromatic
#12051A #2A0B3C #4E156F #721FA2 #9628D6
Accessibility & contrast
On white
12.64
#4E156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#4E156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E156F
12.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E156F | 1.00 | 12.64 | 1.66 | 12.64 |
| #FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#492B42
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #4e156f; /* rgb */ color: rgb(78, 21, 111); /* oklch */ color: oklch(34.0% 0.146 309.3);
Tailwind
colors: {
custom: {
50: '#845a99',
500: '#4e156f',
950: '#000000',
},
}SCSS
$custom: #4e156f; $custom-light: #845a99; $custom-dark: #000000;
JSON
{
"hex": "#4e156f",
"rgb": {
"r": 78,
"g": 21,
"b": 111
},
"hsl": {
"h": 278,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.33969,
"c": 0.14633,
"h": 309.3
},
"luminance": 0.03304
}Semantic roles & 50–950 ramp
primary
#4E156F
secondary
#62A53A
accent
#EB3D7D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E