#4D147E#4D147E
#4D147E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.162 H 302.7°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).
Color values
| HEX | #4D147E |
|---|---|
| RGB | rgb(77, 20, 126) |
| HSL | hsl(272, 73%, 29%) |
| HSV | hsv(272, 84%, 49%) |
| CMYK | cmyk(38.9%, 84.1%, 0%, 50.6%) |
| CIE-LAB | lab(22.25, 45.48, -47.85) |
| CIE-LCH | lch(22.25, 66.01, 313.55°) |
| OKLab | oklab(35.06% 0.0878 -0.1366) |
| OKLCH | oklch(35.06% 0.162 302.7) |
| XYZ | xyz(7.0757, 3.5844, 20.0537) |
| Luminance | 0.0358 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.34
Royal Purple (survey)
#4B006E
ΔE00 3.53
Indigo (survey)
#380282
ΔE00 4.46
Rebeccapurple
#663399
ΔE00 8.07
Indigo Blue
#3A18B1
ΔE00 8.37
Midnight Blue
#191970
ΔE00 8.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D147E #457E14
analogous
#18147E #4D147E #7E147A
triadic
#4D147E #7E4D14 #147E4D
tetradic
#4D147E #7E1814 #457E14 #147A7E
square
#4D147E #7E1814 #457E14 #147A7E
split-complementary
#4D147E #7A7E14 #147E18
monochromatic
#10041A #2D0C49 #4D147E #6D1CB3 #8D2EDE
Accessibility & contrast
On white
12.23
#4D147E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#4D147E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D147E
12.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D147E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D147E | 1.00 | 12.23 | 1.72 | 12.23 |
| #FFFFFF | 12.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#43324A
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4d147e; /* rgb */ color: rgb(77, 20, 126); /* oklch */ color: oklch(35.1% 0.162 302.7);
Tailwind
colors: {
custom: {
50: '#845aa4',
500: '#4d147e',
950: '#000000',
},
}SCSS
$custom: #4d147e; $custom-light: #845aa4; $custom-dark: #000000;
JSON
{
"hex": "#4d147e",
"rgb": {
"r": 77,
"g": 20,
"b": 126
},
"hsl": {
"h": 272.264,
"s": 72.603,
"l": 28.627
},
"oklch": {
"l": 0.35059,
"c": 0.16239,
"h": 302.7
},
"luminance": 0.03584
}Semantic roles & 50–950 ramp
primary
#4D147E
secondary
#72B33A
accent
#EF388D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F