#4D1F7D#4D1F7D
#4D1F7D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.149 H 301.5°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).
Color values
| HEX | #4D1F7D |
|---|---|
| RGB | rgb(77, 31, 125) |
| HSL | hsl(269, 60%, 31%) |
| HSV | hsv(269, 75%, 49%) |
| CMYK | cmyk(38.4%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(23.80, 40.52, -44.68) |
| CIE-LCH | lch(23.80, 60.32, 312.20°) |
| OKLab | oklab(36.12% 0.0781 -0.1274) |
| OKLCH | oklch(36.12% 0.149 301.5) |
| XYZ | xyz(7.2513, 4.0384, 19.7955) |
| Luminance | 0.0404 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.27
Royal Purple (survey)
#4B006E
ΔE00 4.91
Indigo (survey)
#380282
ΔE00 5.82
Rebeccapurple
#663399
ΔE00 6.97
Midnight Blue
#191970
ΔE00 8.38
Darkslateblue
#483D8B
ΔE00 8.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D1F7D #4F7D1F
analogous
#1F207D #4D1F7D #7C1F7D
triadic
#4D1F7D #7D4D1F #1F7D4D
tetradic
#4D1F7D #7D1F20 #4F7D1F #1F7D7C
square
#4D1F7D #7D1F20 #4F7D1F #1F7D7C
split-complementary
#4D1F7D #7D7C1F #207D1F
monochromatic
#11071B #2F134C #4D1F7D #6B2BAE #8A45D1
Accessibility & contrast
On white
11.62
#4D1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#4D1F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D1F7D
11.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D1F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D1F7D | 1.00 | 11.62 | 1.81 | 11.62 |
| #FFFFFF | 11.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#43364C
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #4d1f7d; /* rgb */ color: rgb(77, 31, 125); /* oklch */ color: oklch(36.1% 0.149 301.5);
Tailwind
colors: {
custom: {
50: '#845fa3',
500: '#4d1f7d',
950: '#000000',
},
}SCSS
$custom: #4d1f7d; $custom-light: #845fa3; $custom-dark: #000000;
JSON
{
"hex": "#4d1f7d",
"rgb": {
"r": 77,
"g": 31,
"b": 125
},
"hsl": {
"h": 269.362,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.36119,
"c": 0.14947,
"h": 301.5
},
"luminance": 0.04038
}Semantic roles & 50–950 ramp
primary
#4D1F7D
secondary
#7DB048
accent
#E34496
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F