#4D165B#4D165B

#4D165B is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.3% C 0.124 H 318.7°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#4D165B
RGBrgb(77, 22, 91)
HSLhsl(288, 61%, 22%)
HSVhsv(288, 76%, 36%)
CMYKcmyk(15.4%, 75.8%, 0%, 64.3%)
CIE-LABlab(19.67, 36.50, -29.28)
CIE-LCHlch(19.67, 46.79, 321.27°)
OKLaboklab(32.35% 0.0934 -0.0821)
OKLCHoklch(32.35% 0.124 318.7)
XYZxyz(5.2356, 2.9072, 10.1809)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D165B #245B16
analogous
#2B165B #4D165B #5B1647
triadic
#4D165B #5B4D16 #165B4D
tetradic
#4D165B #5B2B16 #245B16 #16475B
square
#4D165B #5B2B16 #245B16 #16475B
split-complementary
#4D165B #475B16 #165B2B
monochromatic
#150619 #230A2A #4D165B #77228C #A02EBE

Accessibility & contrast

On white

13.28
#4D165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4D165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D165B
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D165B#FFFFFF#000000##FFFFFF
##4D165B1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#1A3159
Tritanopia (blue-blind)
#4D2337
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d165b;
/* rgb */ color: rgb(77, 22, 91);
/* oklch */ color: oklch(32.3% 0.124 318.7);
Tailwind
colors: {
  custom: {
    50: '#81598a',
    500: '#4d165b',
    950: '#000000',
  },
}
SCSS
$custom: #4d165b;
$custom-light: #81598a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d165b",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 287.826,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32349,
    "c": 0.12437,
    "h": 318.7
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#4D165B
secondary
#4C923B
accent
#E44464
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D165B

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

Preview Lab → · Contrast checker → · Palette generator →

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