#4D117C#4D117C
#4D117C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.163 H 303.8°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).
Color values
| HEX | #4D117C |
|---|---|
| RGB | rgb(77, 17, 124) |
| HSL | hsl(274, 76%, 28%) |
| HSV | hsv(274, 86%, 49%) |
| CMYK | cmyk(37.9%, 86.3%, 0%, 51.4%) |
| CIE-LAB | lab(21.70, 46.05, -47.47) |
| CIE-LCH | lch(21.70, 66.13, 314.13°) |
| OKLab | oklab(34.63% 0.0906 -0.1355) |
| OKLCH | oklch(34.63% 0.163 303.8) |
| XYZ | xyz(6.8983, 3.4339, 19.3643) |
| Luminance | 0.0343 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.14
Royal Purple (survey)
#4B006E
ΔE00 3.01
Indigo (survey)
#380282
ΔE00 4.41
Rebeccapurple
#663399
ΔE00 8.49
Midnight Blue
#191970
ΔE00 8.67
Indigo Blue
#3A18B1
ΔE00 8.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D117C #407C11
analogous
#17117C #4D117C #7C1175
triadic
#4D117C #7C4D11 #117C4D
tetradic
#4D117C #7C1711 #407C11 #11757C
square
#4D117C #7C1711 #407C11 #11757C
split-complementary
#4D117C #757C11 #117C17
monochromatic
#11041B #2C0A46 #4D117C #6E18B2 #8F26E1
Accessibility & contrast
On white
12.45
#4D117C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#4D117C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D117C
12.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D117C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D117C | 1.00 | 12.45 | 1.69 | 12.45 |
| #FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#433048
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #4d117c; /* rgb */ color: rgb(77, 17, 124); /* oklch */ color: oklch(34.6% 0.163 303.8);
Tailwind
colors: {
custom: {
50: '#8459a3',
500: '#4d117c',
950: '#000000',
},
}SCSS
$custom: #4d117c; $custom-light: #8459a3; $custom-dark: #000000;
JSON
{
"hex": "#4d117c",
"rgb": {
"r": 77,
"g": 17,
"b": 124
},
"hsl": {
"h": 273.645,
"s": 75.887,
"l": 27.647
},
"oklch": {
"l": 0.34626,
"c": 0.163,
"h": 303.8
},
"luminance": 0.03434
}Semantic roles & 50–950 ramp
primary
#4D117C
secondary
#6DB237
accent
#F23588
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F