#4D164C#4D164C

#4D164C is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.3% C 0.110 H 328.6°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#4D164C
RGBrgb(77, 22, 76)
HSLhsl(301, 56%, 19%)
HSVhsv(301, 71%, 30%)
CMYKcmyk(0%, 71.4%, 1.3%, 69.8%)
CIE-LABlab(18.69, 33.38, -20.72)
CIE-LCHlch(18.69, 39.29, 328.17°)
OKLaboklab(31.33% 0.0935 -0.0572)
OKLCHoklch(31.33% 0.11 328.6)
XYZxyz(4.6519, 2.6737, 7.1071)
Luminance0.0267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D164C #164D17
analogous
#33164D #4D164C #4D1631
triadic
#4D164C #4C4D16 #164C4D
tetradic
#4D164C #4D3316 #164D17 #16314D
square
#4D164C #4D3316 #164D17 #16314D
split-complementary
#4D164C #314D16 #164D33
monochromatic
#180717 #1D081D #4D164C #7D247B #AC31AA

Accessibility & contrast

On white

13.68
#4D164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4D164C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D164C
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D164C#FFFFFF#000000##FFFFFF
##4D164C1.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F294E
Deuteranopia (green-blind)
#24304B
Tritanopia (blue-blind)
#501D2E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4d164c;
/* rgb */ color: rgb(77, 22, 76);
/* oklch */ color: oklch(31.3% 0.110 328.6);
Tailwind
colors: {
  custom: {
    50: '#81587e',
    500: '#4d164c',
    950: '#000000',
  },
}
SCSS
$custom: #4d164c;
$custom-light: #81587e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d164c",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 301.091,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31327,
    "c": 0.10963,
    "h": 328.6
  },
  "luminance": 0.02673
}

Semantic roles & 50–950 ramp

primary
#4D164C
secondary
#3A853C
accent
#DF4C49
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4D164C

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

Preview Lab → · Contrast checker → · Palette generator →

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