#4D147F#4D147F
#4D147F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.163 H 302.3°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).
Color values
| HEX | #4D147F |
|---|---|
| RGB | rgb(77, 20, 127) |
| HSL | hsl(272, 73%, 29%) |
| HSV | hsv(272, 84%, 50%) |
| CMYK | cmyk(39.4%, 84.3%, 0%, 50.2%) |
| CIE-LAB | lab(22.34, 45.72, -48.33) |
| CIE-LCH | lch(22.34, 66.53, 313.41°) |
| OKLab | oklab(35.15% 0.0874 -0.138) |
| OKLCH | oklch(35.15% 0.163 302.3) |
| XYZ | xyz(7.1406, 3.6104, 20.3952) |
| Luminance | 0.0361 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.28
Royal Purple (survey)
#4B006E
ΔE00 3.66
Indigo (survey)
#380282
ΔE00 4.39
Rebeccapurple
#663399
ΔE00 8.01
Indigo Blue
#3A18B1
ΔE00 8.20
Midnight Blue
#191970
ΔE00 8.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D147F #467F14
analogous
#18147F #4D147F #7F147C
triadic
#4D147F #7F4D14 #147F4D
tetradic
#4D147F #7F1814 #467F14 #147C7F
square
#4D147F #7F1814 #467F14 #147C7F
split-complementary
#4D147F #7C7F14 #147F18
monochromatic
#10041A #2D0C4A #4D147F #6D1CB4 #8C2FDE
Accessibility & contrast
On white
12.20
#4D147F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#4D147F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D147F
12.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D147F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D147F | 1.00 | 12.20 | 1.72 | 12.20 |
| #FFFFFF | 12.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#42324B
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4d147f; /* rgb */ color: rgb(77, 20, 127); /* oklch */ color: oklch(35.2% 0.163 302.3);
Tailwind
colors: {
custom: {
50: '#855aa5',
500: '#4d147f',
950: '#000000',
},
}SCSS
$custom: #4d147f; $custom-light: #855aa5; $custom-dark: #000000;
JSON
{
"hex": "#4d147f",
"rgb": {
"r": 77,
"g": 20,
"b": 127
},
"hsl": {
"h": 271.963,
"s": 72.789,
"l": 28.824
},
"oklch": {
"l": 0.35152,
"c": 0.16341,
"h": 302.3
},
"luminance": 0.0361
}Semantic roles & 50–950 ramp
primary
#4D147F
secondary
#73B43B
accent
#EF388E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F