#4D1F9C#4D1F9C
#4D1F9C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.184 H 292.2°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).
Color values
| HEX | #4D1F9C |
|---|---|
| RGB | rgb(77, 31, 156) |
| HSL | hsl(262, 67%, 37%) |
| HSV | hsv(262, 80%, 61%) |
| CMYK | cmyk(50.6%, 80.1%, 0%, 38.8%) |
| CIE-LAB | lab(26.61, 48.76, -59.36) |
| CIE-LCH | lch(26.61, 76.82, 309.40°) |
| OKLab | oklab(38.96% 0.0696 -0.1705) |
| OKLCH | oklch(38.96% 0.184 292.2) |
| XYZ | xyz(9.5496, 4.9577, 31.8998) |
| Luminance | 0.0496 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.96
Indigo
#4B0082
ΔE00 5.62
Violet Blue
#510AC9
ΔE00 6.02
Indigo (survey)
#380282
ΔE00 6.25
Rebeccapurple
#663399
ΔE00 6.25
Ultramarine
#2000B1
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D1F9C #6E9C1F
analogous
#1F309C #4D1F9C #8C1F9C
triadic
#4D1F9C #9C4D1F #1F9C4D
tetradic
#4D1F9C #9C1F30 #6E9C1F #1F9C8C
square
#4D1F9C #9C1F30 #6E9C1F #1F9C8C
split-complementary
#4D1F9C #9C8C1F #309C1F
monochromatic
#1B0B36 #341569 #4D1F9C #6629CF #8958DE
Accessibility & contrast
On white
10.54
#4D1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#4D1F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D1F9C
10.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D1F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D1F9C | 1.00 | 10.54 | 1.99 | 10.54 |
| #FFFFFF | 10.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#003C9A
Tritanopia (blue-blind)
#33435E
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #4d1f9c; /* rgb */ color: rgb(77, 31, 156); /* oklch */ color: oklch(39.0% 0.184 292.2);
Tailwind
colors: {
custom: {
50: '#8861ba',
500: '#4d1f9c',
950: '#000000',
},
}SCSS
$custom: #4d1f9c; $custom-light: #8861ba; $custom-dark: #000000;
JSON
{
"hex": "#4d1f9c",
"rgb": {
"r": 77,
"g": 31,
"b": 156
},
"hsl": {
"h": 262.08,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.38959,
"c": 0.18416,
"h": 292.2
},
"luminance": 0.04958
}Semantic roles & 50–950 ramp
primary
#4D1F9C
secondary
#9AC155
accent
#EA3EAB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981