#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
RGBrgb(77, 64, 111)
HSLhsl(257, 27%, 34%)
HSVhsv(257, 42%, 44%)
CMYKcmyk(30.6%, 42.3%, 0%, 56.5%)
CIE-LABlab(30.38, 17.01, -25.27)
CIE-LCHlch(30.38, 30.46, 303.96°)
OKLaboklab(40.66% 0.0336 -0.0706)
OKLCHoklch(40.66% 0.078 295.4)
XYZxyz(7.7625, 6.3922, 15.8607)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

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
##4D406F1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.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

Preview Lab

Preview with #4D406F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#4D406F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva