#4D165D#4D165D

#4D165D is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.126 H 317.5°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#4D165D
RGBrgb(77, 22, 93)
HSLhsl(286, 62%, 23%)
HSVhsv(286, 76%, 36%)
CMYKcmyk(17.2%, 76.3%, 0%, 63.5%)
CIE-LABlab(19.81, 36.94, -30.38)
CIE-LCHlch(19.81, 47.83, 320.56°)
OKLaboklab(32.5% 0.0932 -0.0853)
OKLCHoklch(32.5% 0.126 317.5)
XYZxyz(5.3230, 2.9421, 10.6413)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D165D #265D16
analogous
#2A165D #4D165D #5D1649
triadic
#4D165D #5D4D16 #165D4D
tetradic
#4D165D #5D2A16 #265D16 #16495D
square
#4D165D #5D2A16 #265D16 #16495D
split-complementary
#4D165D #495D16 #165D2A
monochromatic
#140619 #240A2C #4D165D #76228E #9F2DC0

Accessibility & contrast

On white

13.22
#4D165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4D165D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D165D
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D165D#FFFFFF#000000##FFFFFF
##4D165D1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#18325B
Tritanopia (blue-blind)
#4C2438
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d165d;
/* rgb */ color: rgb(77, 22, 93);
/* oklch */ color: oklch(32.5% 0.126 317.5);
Tailwind
colors: {
  custom: {
    50: '#82598b',
    500: '#4d165d',
    950: '#000000',
  },
}
SCSS
$custom: #4d165d;
$custom-light: #82598b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d165d",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 286.479,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32496,
    "c": 0.1264,
    "h": 317.5
  },
  "luminance": 0.02942
}

Semantic roles & 50–950 ramp

primary
#4D165D
secondary
#4F943B
accent
#E54367
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D165D

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

Preview Lab → · Contrast checker → · Palette generator →

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