#4D405F#4D405F

#4D405F is a dark, muted violet. Relative luminance 0.061; OKLCH L 39.8% C 0.054 H 303.3°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#4D405F
RGBrgb(77, 64, 95)
HSLhsl(265, 19%, 31%)
HSVhsv(265, 33%, 37%)
CMYKcmyk(18.9%, 32.6%, 0%, 62.7%)
CIE-LABlab(29.59, 12.66, -16.29)
CIE-LCHlch(29.59, 20.63, 307.87°)
OKLaboklab(39.8% 0.0294 -0.0448)
OKLCHoklch(39.8% 0.054 303.3)
XYZxyz(6.9591, 6.0708, 11.6294)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D405F #525F40
analogous
#40425F #4D405F #5C405F
triadic
#4D405F #5F4D40 #405F4D
tetradic
#4D405F #5F4042 #525F40 #405F5C
square
#4D405F #5F4042 #525F40 #405F5C
split-complementary
#4D405F #5F5C40 #425F40
monochromatic
#120F16 #2F273A #4D405F #6B5984 #8976A3

Accessibility & contrast

On white

9.48
#4D405F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4D405F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D405F
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D405F#FFFFFF#000000##FFFFFF
##4D405F1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A4560
Deuteranopia (green-blind)
#3C465E
Tritanopia (blue-blind)
#4A454B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d405f;
/* rgb */ color: rgb(77, 64, 95);
/* oklch */ color: oklch(39.8% 0.054 303.3);
Tailwind
colors: {
  custom: {
    50: '#7f758c',
    500: '#4d405f',
    950: '#000000',
  },
}
SCSS
$custom: #4d405f;
$custom-light: #7f758c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d405f",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 95
  },
  "hsl": {
    "h": 265.161,
    "s": 19.497,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39797,
    "c": 0.05359,
    "h": 303.3
  },
  "luminance": 0.06071
}

Semantic roles & 50–950 ramp

primary
#4D405F
secondary
#808F6C
accent
#BC6C9A
background
#F7F7F8
surface
#EEEDF0
border
#C9C8CB
text
#0A080C
muted
#7C7B7D

Preview Lab

Preview with #4D405F

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

Preview Lab → · Contrast checker → · Palette generator →

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