#4D1D7C#4D1D7C
#4D1D7C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.151 H 302.2°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).
Color values
| HEX | #4D1D7C |
|---|---|
| RGB | rgb(77, 29, 124) |
| HSL | hsl(270, 62%, 30%) |
| HSV | hsv(270, 77%, 49%) |
| CMYK | cmyk(37.9%, 76.6%, 0%, 51.4%) |
| CIE-LAB | lab(23.38, 41.21, -44.73) |
| CIE-LCH | lch(23.38, 60.83, 312.65°) |
| OKLab | oklab(35.8% 0.0804 -0.1276) |
| OKLCH | oklch(35.8% 0.151 302.2) |
| XYZ | xyz(7.1372, 3.9117, 19.4439) |
| Luminance | 0.0391 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.94
Royal Purple (survey)
#4B006E
ΔE00 4.49
Indigo (survey)
#380282
ΔE00 5.61
Rebeccapurple
#663399
ΔE00 7.26
Midnight Blue
#191970
ΔE00 8.41
Indigo Blue
#3A18B1
ΔE00 8.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D1D7C #4C7C1D
analogous
#1D1D7C #4D1D7C #7C1D7C
triadic
#4D1D7C #7C4D1D #1D7C4D
tetradic
#4D1D7C #7C1D1D #4C7C1D #1D7C7C
square
#4D1D7C #7C1D1D #4C7C1D #1D7C7C
split-complementary
#4D1D7C #7C7C1D #1D7C1D
monochromatic
#0F0619 #2E114A #4D1D7C #6C29AE #8A41D3
Accessibility & contrast
On white
11.78
#4D1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#4D1D7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D1D7C
11.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D1D7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D1D7C | 1.00 | 11.78 | 1.78 | 11.78 |
| #FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#43354B
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4d1d7c; /* rgb */ color: rgb(77, 29, 124); /* oklch */ color: oklch(35.8% 0.151 302.2);
Tailwind
colors: {
custom: {
50: '#845ea3',
500: '#4d1d7c',
950: '#000000',
},
}SCSS
$custom: #4d1d7c; $custom-light: #845ea3; $custom-dark: #000000;
JSON
{
"hex": "#4d1d7c",
"rgb": {
"r": 77,
"g": 29,
"b": 124
},
"hsl": {
"h": 270.316,
"s": 62.092,
"l": 30
},
"oklch": {
"l": 0.35796,
"c": 0.15077,
"h": 302.2
},
"luminance": 0.03912
}Semantic roles & 50–950 ramp
primary
#4D1D7C
secondary
#7AB045
accent
#E54393
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F