#4D164F#4D164F

#4D164F is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.5% C 0.112 H 326.4°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#4D164F
RGBrgb(77, 22, 79)
HSLhsl(298, 56%, 20%)
HSVhsv(298, 72%, 31%)
CMYKcmyk(2.5%, 72.2%, 0%, 69%)
CIE-LABlab(18.87, 33.98, -22.48)
CIE-LCHlch(18.87, 40.74, 326.52°)
OKLaboklab(31.52% 0.0937 -0.0623)
OKLCHoklch(31.52% 0.112 326.4)
XYZxyz(4.7587, 2.7164, 7.6693)
Luminance0.0272 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D164F #184F16
analogous
#31164F #4D164F #4F1634
triadic
#4D164F #4F4D16 #164F4D
tetradic
#4D164F #4F3116 #184F16 #16344F
square
#4D164F #4F3116 #184F16 #16344F
split-complementary
#4D164F #344F16 #164F31
monochromatic
#170718 #1E091F #4D164F #7C237F #AA31AF

Accessibility & contrast

On white

13.61
#4D164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4D164F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D164F
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D164F#FFFFFF#000000##FFFFFF
##4D164F1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2951
Deuteranopia (green-blind)
#22304E
Tritanopia (blue-blind)
#4F1E30
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d164f;
/* rgb */ color: rgb(77, 22, 79);
/* oklch */ color: oklch(31.5% 0.112 326.4);
Tailwind
colors: {
  custom: {
    50: '#815880',
    500: '#4d164f',
    950: '#000000',
  },
}
SCSS
$custom: #4d164f;
$custom-light: #815880;
$custom-dark: #000000;
JSON
{
  "hex": "#4d164f",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 297.895,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31519,
    "c": 0.11249,
    "h": 326.4
  },
  "luminance": 0.02716
}

Semantic roles & 50–950 ramp

primary
#4D164F
secondary
#3D863A
accent
#E0484D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4D164F

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

Preview Lab → · Contrast checker → · Palette generator →

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