#4D4072#4D4072

#4D4072 is a dark, moderate violet. Relative luminance 0.065; OKLCH L 40.8% C 0.083 H 294.4°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#4D4072
RGBrgb(77, 64, 114)
HSLhsl(256, 28%, 35%)
HSVhsv(256, 44%, 45%)
CMYKcmyk(32.5%, 43.9%, 0%, 55.3%)
CIE-LABlab(30.54, 17.87, -26.91)
CIE-LCHlch(30.54, 32.30, 303.59°)
OKLaboklab(40.84% 0.0342 -0.0754)
OKLCHoklch(40.84% 0.083 294.4)
XYZxyz(7.9305, 6.4594, 16.7453)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D4072 #657240
analogous
#404C72 #4D4072 #664072
triadic
#4D4072 #724D40 #40724D
tetradic
#4D4072 #72404C #657240 #407266
square
#4D4072 #72404C #657240 #407266
split-complementary
#4D4072 #726640 #4C7240
monochromatic
#181424 #332A4B #4D4072 #675699 #8879B4

Accessibility & contrast

On white

9.16
#4D4072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4D4072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D4072
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D4072#FFFFFF#000000##FFFFFF
##4D40721.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314874
Deuteranopia (green-blind)
#334771
Tritanopia (blue-blind)
#454953
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d4072;
/* rgb */ color: rgb(77, 64, 114);
/* oklch */ color: oklch(40.8% 0.083 294.4);
Tailwind
colors: {
  custom: {
    50: '#80759b',
    500: '#4d4072',
    950: '#000000',
  },
}
SCSS
$custom: #4d4072;
$custom-light: #80759b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d4072",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 114
  },
  "hsl": {
    "h": 255.6,
    "s": 28.09,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40835,
    "c": 0.08279,
    "h": 294.4
  },
  "luminance": 0.06459
}

Semantic roles & 50–950 ramp

primary
#4D4072
secondary
#929F6F
accent
#C463AB
background
#F7F7F9
surface
#EEEDF2
border
#C9C8CC
text
#0A080E
muted
#7C7B7E

Preview Lab

Preview with #4D4072

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

Preview Lab → · Contrast checker → · Palette generator →

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