#4D1F9E#4D1F9E
#4D1F9E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.186 H 291.7°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).
Color values
| HEX | #4D1F9E |
|---|---|
| RGB | rgb(77, 31, 158) |
| HSL | hsl(262, 67%, 37%) |
| HSV | hsv(262, 80%, 62%) |
| CMYK | cmyk(51.3%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(26.81, 49.30, -60.26) |
| CIE-LCH | lch(26.81, 77.86, 309.29°) |
| OKLab | oklab(39.15% 0.069 -0.1731) |
| OKLCH | oklch(39.15% 0.186 291.7) |
| XYZ | xyz(9.7204, 5.0260, 32.7991) |
| Luminance | 0.0503 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.73
Violet Blue
#510AC9
ΔE00 5.74
Indigo
#4B0082
ΔE00 5.84
Ultramarine
#2000B1
ΔE00 6.26
Rebeccapurple
#663399
ΔE00 6.31
Indigo (survey)
#380282
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D1F9E #709E1F
analogous
#1F319E #4D1F9E #8D1F9E
triadic
#4D1F9E #9E4D1F #1F9E4D
tetradic
#4D1F9E #9E1F31 #709E1F #1F9E8D
square
#4D1F9E #9E1F31 #709E1F #1F9E8D
split-complementary
#4D1F9E #9E8D1F #319E1F
monochromatic
#1B0B38 #34156B #4D1F9E #6629D1 #8959DE
Accessibility & contrast
On white
10.47
#4D1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#4D1F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D1F9E
10.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D1F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D1F9E | 1.00 | 10.47 | 2.01 | 10.47 |
| #FFFFFF | 10.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#31445F
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #4d1f9e; /* rgb */ color: rgb(77, 31, 158); /* oklch */ color: oklch(39.2% 0.186 291.7);
Tailwind
colors: {
custom: {
50: '#8861bc',
500: '#4d1f9e',
950: '#000000',
},
}SCSS
$custom: #4d1f9e; $custom-light: #8861bc; $custom-dark: #000000;
JSON
{
"hex": "#4d1f9e",
"rgb": {
"r": 77,
"g": 31,
"b": 158
},
"hsl": {
"h": 261.732,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.39153,
"c": 0.18637,
"h": 291.7
},
"luminance": 0.05026
}Semantic roles & 50–950 ramp
primary
#4D1F9E
secondary
#9BC256
accent
#EA3EAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81