#4D406F#4D406F
#4D406F is a dark, moderate violet. Relative luminance 0.064; OKLCH L 40.7% C 0.078 H 295.4°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).
Color values
| HEX | #4D406F |
|---|---|
| RGB | rgb(77, 64, 111) |
| HSL | hsl(257, 27%, 34%) |
| HSV | hsv(257, 42%, 44%) |
| CMYK | cmyk(30.6%, 42.3%, 0%, 56.5%) |
| CIE-LAB | lab(30.38, 17.01, -25.27) |
| CIE-LCH | lch(30.38, 30.46, 303.96°) |
| OKLab | oklab(40.66% 0.0336 -0.0706) |
| OKLCH | oklch(40.66% 0.078 295.4) |
| XYZ | xyz(7.7625, 6.3922, 15.8607) |
| Luminance | 0.0639 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 7.22
Twilight
#4E518B
ΔE00 7.73
Dusk
#4E5481
ΔE00 7.87
Blueberry
#464196
ΔE00 9.00
Rebeccapurple
#663399
ΔE00 10.98
Grape
#6C3461
ΔE00 11.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D406F #626F40
analogous
#404B6F #4D406F #65406F
triadic
#4D406F #6F4D40 #406F4D
tetradic
#4D406F #6F404B #626F40 #406F65
square
#4D406F #6F404B #626F40 #406F65
split-complementary
#4D406F #6F6540 #4B6F40
monochromatic
#171321 #322A48 #4D406F #685696 #8878B1
Accessibility & contrast
On white
9.22
#4D406F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#4D406F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D406F
9.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D406F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D406F | 1.00 | 9.22 | 2.28 | 9.22 |
| #FFFFFF | 9.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#334871
Deuteranopia (green-blind)
#35476E
Tritanopia (blue-blind)
#464852
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #4d406f; /* rgb */ color: rgb(77, 64, 111); /* oklch */ color: oklch(40.7% 0.078 295.4);
Tailwind
colors: {
custom: {
50: '#807598',
500: '#4d406f',
950: '#000000',
},
}SCSS
$custom: #4d406f; $custom-light: #807598; $custom-dark: #000000;
JSON
{
"hex": "#4d406f",
"rgb": {
"r": 77,
"g": 64,
"b": 111
},
"hsl": {
"h": 256.596,
"s": 26.857,
"l": 34.314
},
"oklch": {
"l": 0.4066,
"c": 0.07821,
"h": 295.4
},
"luminance": 0.06392
}Semantic roles & 50–950 ramp
primary
#4D406F
secondary
#909C6F
accent
#C365A9
background
#F7F7F9
surface
#EEEDF2
border
#C9C8CC
text
#0A080D
muted
#7C7B7E