#4E156E#4E156E
#4E156E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.145 H 309.7°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).
Color values
| HEX | #4E156E |
|---|---|
| RGB | rgb(78, 21, 110) |
| HSL | hsl(278, 68%, 26%) |
| HSV | hsv(278, 81%, 43%) |
| CMYK | cmyk(29.1%, 80.9%, 0%, 56.9%) |
| CIE-LAB | lab(21.14, 41.45, -39.38) |
| CIE-LCH | lch(21.14, 57.18, 316.46°) |
| OKLab | oklab(33.89% 0.0929 -0.1117) |
| OKLCH | oklch(33.89% 0.145 309.7) |
| XYZ | xyz(6.2240, 3.2820, 15.0544) |
| Luminance | 0.0328 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.71
Indigo
#4B0082
ΔE00 4.68
Indigo (survey)
#380282
ΔE00 6.67
Plum Purple
#4E0550
ΔE00 6.68
Deep Violet
#490648
ΔE00 8.10
Darkish Purple
#751973
ΔE00 8.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E156E #356E15
analogous
#21156E #4E156E #6E1561
triadic
#4E156E #6E4E15 #156E4E
tetradic
#4E156E #6E2115 #356E15 #15616E
square
#4E156E #6E2115 #356E15 #15616E
split-complementary
#4E156E #616E15 #156E21
monochromatic
#12051A #2A0B3B #4E156E #721FA1 #9729D5
Accessibility & contrast
On white
12.68
#4E156E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#4E156E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E156E
12.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E156E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E156E | 1.00 | 12.68 | 1.66 | 12.68 |
| #FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#492B41
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #4e156e; /* rgb */ color: rgb(78, 21, 110); /* oklch */ color: oklch(33.9% 0.145 309.7);
Tailwind
colors: {
custom: {
50: '#845a98',
500: '#4e156e',
950: '#000000',
},
}SCSS
$custom: #4e156e; $custom-light: #845a98; $custom-dark: #000000;
JSON
{
"hex": "#4e156e",
"rgb": {
"r": 78,
"g": 21,
"b": 110
},
"hsl": {
"h": 278.427,
"s": 67.939,
"l": 25.686
},
"oklch": {
"l": 0.33885,
"c": 0.14531,
"h": 309.7
},
"luminance": 0.03282
}Semantic roles & 50–950 ramp
primary
#4E156E
secondary
#61A43A
accent
#EB3D7B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E