#4D165A#4D165A

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

Color values

HEX#4D165A
RGBrgb(77, 22, 90)
HSLhsl(289, 61%, 22%)
HSVhsv(289, 76%, 35%)
CMYKcmyk(14.4%, 75.6%, 0%, 64.7%)
CIE-LABlab(19.60, 36.28, -28.72)
CIE-LCHlch(19.60, 46.28, 321.63°)
OKLaboklab(32.28% 0.0935 -0.0805)
OKLCHoklch(32.28% 0.123 319.3)
XYZxyz(5.1927, 2.8900, 9.9552)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D165A #235A16
analogous
#2B165A #4D165A #5A1645
triadic
#4D165A #5A4D16 #165A4D
tetradic
#4D165A #5A2B16 #235A16 #16455A
square
#4D165A #5A2B16 #235A16 #16455A
split-complementary
#4D165A #455A16 #165A2B
monochromatic
#150619 #230A29 #4D165A #77228B #A12EBC

Accessibility & contrast

On white

13.31
#4D165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D165A
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D165A#FFFFFF#000000##FFFFFF
##4D165A1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5C
Deuteranopia (green-blind)
#1B3158
Tritanopia (blue-blind)
#4D2336
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d165a;
/* rgb */ color: rgb(77, 22, 90);
/* oklch */ color: oklch(32.3% 0.123 319.3);
Tailwind
colors: {
  custom: {
    50: '#815989',
    500: '#4d165a',
    950: '#000000',
  },
}
SCSS
$custom: #4d165a;
$custom-light: #815989;
$custom-dark: #000000;
JSON
{
  "hex": "#4d165a",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 288.529,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32276,
    "c": 0.12336,
    "h": 319.3
  },
  "luminance": 0.0289
}

Semantic roles & 50–950 ramp

primary
#4D165A
secondary
#4B913B
accent
#E44463
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4D165A

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

Preview Lab → · Contrast checker → · Palette generator →

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