#4D158F#4D158F
#4D158F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.179 H 296.9°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).
Color values
| HEX | #4D158F |
|---|---|
| RGB | rgb(77, 21, 143) |
| HSL | hsl(268, 74%, 32%) |
| HSV | hsv(268, 85%, 56%) |
| CMYK | cmyk(46.2%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(23.99, 49.33, -55.66) |
| CIE-LCH | lch(23.99, 74.37, 311.55°) |
| OKLab | oklab(36.76% 0.0811 -0.1596) |
| OKLCH | oklch(36.76% 0.179 296.9) |
| XYZ | xyz(8.2853, 4.0971, 26.3356) |
| Luminance | 0.0410 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.07
Indigo (survey)
#380282
ΔE00 4.34
Indigo Blue
#3A18B1
ΔE00 5.66
Royal Purple (survey)
#4B006E
ΔE00 6.00
Ultramarine
#2000B1
ΔE00 6.97
Royal
#0C1793
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D158F #578F15
analogous
#151A8F #4D158F #8A158F
triadic
#4D158F #8F4D15 #158F4D
tetradic
#4D158F #8F151A #578F15 #158F8A
square
#4D158F #8F151A #578F15 #158F8A
split-complementary
#4D158F #8F8A15 #1A8F15
monochromatic
#140524 #300D5A #4D158F #6A1DC4 #883CE2
Accessibility & contrast
On white
11.54
#4D158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#4D158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D158F
11.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D158F | 1.00 | 11.54 | 1.82 | 11.54 |
| #FFFFFF | 11.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#3B3A54
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #4d158f; /* rgb */ color: rgb(77, 21, 143); /* oklch */ color: oklch(36.8% 0.179 296.9);
Tailwind
colors: {
custom: {
50: '#865cb1',
500: '#4d158f',
950: '#000000',
},
}SCSS
$custom: #4d158f; $custom-light: #865cb1; $custom-dark: #000000;
JSON
{
"hex": "#4d158f",
"rgb": {
"r": 77,
"g": 21,
"b": 143
},
"hsl": {
"h": 267.541,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.36759,
"c": 0.17899,
"h": 296.9
},
"luminance": 0.04097
}Semantic roles & 50–950 ramp
primary
#4D158F
secondary
#85C23E
accent
#F1379C
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980