#4D1F9D#4D1F9D
#4D1F9D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.185 H 292.0°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).
Color values
| HEX | #4D1F9D |
|---|---|
| RGB | rgb(77, 31, 157) |
| HSL | hsl(262, 67%, 37%) |
| HSV | hsv(262, 80%, 62%) |
| CMYK | cmyk(51%, 80.3%, 0%, 38.4%) |
| CIE-LAB | lab(26.71, 49.03, -59.81) |
| CIE-LCH | lch(26.71, 77.34, 309.34°) |
| OKLab | oklab(39.06% 0.0693 -0.1718) |
| OKLCH | oklch(39.06% 0.185 292) |
| XYZ | xyz(9.6346, 4.9917, 32.3476) |
| Luminance | 0.0499 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.84
Indigo
#4B0082
ΔE00 5.73
Violet Blue
#510AC9
ΔE00 5.87
Rebeccapurple
#663399
ΔE00 6.28
Ultramarine
#2000B1
ΔE00 6.32
Indigo (survey)
#380282
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D1F9D #6F9D1F
analogous
#1F309D #4D1F9D #8C1F9D
triadic
#4D1F9D #9D4D1F #1F9D4D
tetradic
#4D1F9D #9D1F30 #6F9D1F #1F9D8C
square
#4D1F9D #9D1F30 #6F9D1F #1F9D8C
split-complementary
#4D1F9D #9D8C1F #309D1F
monochromatic
#1B0B37 #34156A #4D1F9D #6629D0 #8958DE
Accessibility & contrast
On white
10.51
#4D1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#4D1F9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D1F9D
10.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D1F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D1F9D | 1.00 | 10.51 | 2.00 | 10.51 |
| #FFFFFF | 10.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#32435E
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #4d1f9d; /* rgb */ color: rgb(77, 31, 157); /* oklch */ color: oklch(39.1% 0.185 292.0);
Tailwind
colors: {
custom: {
50: '#8861bb',
500: '#4d1f9d',
950: '#000000',
},
}SCSS
$custom: #4d1f9d; $custom-light: #8861bb; $custom-dark: #000000;
JSON
{
"hex": "#4d1f9d",
"rgb": {
"r": 77,
"g": 31,
"b": 157
},
"hsl": {
"h": 261.905,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.39056,
"c": 0.18526,
"h": 292
},
"luminance": 0.04992
}Semantic roles & 50–950 ramp
primary
#4D1F9D
secondary
#9AC256
accent
#EA3EAB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981