#4D107E#4D107E
#4D107E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.166 H 303.1°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).
Color values
| HEX | #4D107E |
|---|---|
| RGB | rgb(77, 16, 126) |
| HSL | hsl(273, 77%, 28%) |
| HSV | hsv(273, 87%, 49%) |
| CMYK | cmyk(38.9%, 87.3%, 0%, 50.6%) |
| CIE-LAB | lab(21.78, 46.85, -48.61) |
| CIE-LCH | lch(21.78, 67.51, 313.94°) |
| OKLab | oklab(34.74% 0.0906 -0.1388) |
| OKLCH | oklch(34.74% 0.166 303.1) |
| XYZ | xyz(7.0109, 3.4547, 20.0321) |
| Luminance | 0.0345 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 1.85
Royal Purple (survey)
#4B006E
ΔE00 3.21
Indigo (survey)
#380282
ΔE00 4.18
Indigo Blue
#3A18B1
ΔE00 8.41
Rebeccapurple
#663399
ΔE00 8.45
Midnight Blue
#191970
ΔE00 8.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D107E #417E10
analogous
#16107E #4D107E #7E1078
triadic
#4D107E #7E4D10 #107E4D
tetradic
#4D107E #7E1610 #417E10 #10787E
square
#4D107E #7E1610 #417E10 #10787E
split-complementary
#4D107E #787E10 #107E16
monochromatic
#11031B #2C0948 #4D107E #6E17B4 #8F25E3
Accessibility & contrast
On white
12.42
#4D107E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#4D107E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D107E
12.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D107E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D107E | 1.00 | 12.42 | 1.69 | 12.42 |
| #FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#433049
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #4d107e; /* rgb */ color: rgb(77, 16, 126); /* oklch */ color: oklch(34.7% 0.166 303.1);
Tailwind
colors: {
custom: {
50: '#8559a4',
500: '#4d107e',
950: '#000000',
},
}SCSS
$custom: #4d107e; $custom-light: #8559a4; $custom-dark: #000000;
JSON
{
"hex": "#4d107e",
"rgb": {
"r": 77,
"g": 16,
"b": 126
},
"hsl": {
"h": 273.273,
"s": 77.465,
"l": 27.843
},
"oklch": {
"l": 0.34736,
"c": 0.1658,
"h": 303.1
},
"luminance": 0.03455
}Semantic roles & 50–950 ramp
primary
#4D107E
secondary
#6EB436
accent
#F43489
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F