#4D1F7F#4D1F7F
#4D1F7F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.152 H 300.8°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #4D1F7F |
|---|---|
| RGB | rgb(77, 31, 127) |
| HSL | hsl(269, 61%, 31%) |
| HSV | hsv(269, 76%, 50%) |
| CMYK | cmyk(39.4%, 75.6%, 0%, 50.2%) |
| CIE-LAB | lab(23.97, 41.04, -45.67) |
| CIE-LCH | lch(23.97, 61.41, 311.94°) |
| OKLab | oklab(36.29% 0.0777 -0.1303) |
| OKLCH | oklch(36.29% 0.152 300.8) |
| XYZ | xyz(7.3804, 4.0900, 20.4752) |
| Luminance | 0.0409 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.16
Royal Purple (survey)
#4B006E
ΔE00 5.07
Indigo (survey)
#380282
ΔE00 5.68
Rebeccapurple
#663399
ΔE00 6.82
Indigo Blue
#3A18B1
ΔE00 8.32
Midnight Blue
#191970
ΔE00 8.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D1F7F #517F1F
analogous
#1F217F #4D1F7F #7D1F7F
triadic
#4D1F7F #7F4D1F #1F7F4D
tetradic
#4D1F7F #7F1F21 #517F1F #1F7F7D
square
#4D1F7F #7F1F21 #517F1F #1F7F7D
split-complementary
#4D1F7F #7F7D1F #217F1F
monochromatic
#11071D #2F134E #4D1F7F #6B2BB0 #8946D2
Accessibility & contrast
On white
11.55
#4D1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#4D1F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D1F7F
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D1F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D1F7F | 1.00 | 11.55 | 1.82 | 11.55 |
| #FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#42374D
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #4d1f7f; /* rgb */ color: rgb(77, 31, 127); /* oklch */ color: oklch(36.3% 0.152 300.8);
Tailwind
colors: {
custom: {
50: '#845fa5',
500: '#4d1f7f',
950: '#000000',
},
}SCSS
$custom: #4d1f7f; $custom-light: #845fa5; $custom-dark: #000000;
JSON
{
"hex": "#4d1f7f",
"rgb": {
"r": 77,
"g": 31,
"b": 127
},
"hsl": {
"h": 268.75,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.36291,
"c": 0.15173,
"h": 300.8
},
"luminance": 0.0409
}Semantic roles & 50–950 ramp
primary
#4D1F7F
secondary
#7FB248
accent
#E44497
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F