#4D165F#4D165F

#4D165F is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.6% C 0.128 H 316.4°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#4D165F
RGBrgb(77, 22, 95)
HSLhsl(285, 62%, 23%)
HSVhsv(285, 77%, 37%)
CMYKcmyk(18.9%, 76.8%, 0%, 62.7%)
CIE-LABlab(19.96, 37.39, -31.48)
CIE-LCHlch(19.96, 48.87, 319.90°)
OKLaboklab(32.65% 0.093 -0.0886)
OKLCHoklch(32.65% 0.128 316.4)
XYZxyz(5.4127, 2.9780, 11.1140)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D165F #285F16
analogous
#28165F #4D165F #5F164C
triadic
#4D165F #5F4D16 #165F4D
tetradic
#4D165F #5F2816 #285F16 #164C5F
square
#4D165F #5F2816 #285F16 #164C5F
split-complementary
#4D165F #4C5F16 #165F28
monochromatic
#140619 #250A2D #4D165F #752291 #9E2DC2

Accessibility & contrast

On white

13.16
#4D165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4D165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D165F
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D165F#FFFFFF#000000##FFFFFF
##4D165F1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#16325D
Tritanopia (blue-blind)
#4C2539
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d165f;
/* rgb */ color: rgb(77, 22, 95);
/* oklch */ color: oklch(32.6% 0.128 316.4);
Tailwind
colors: {
  custom: {
    50: '#82598d',
    500: '#4d165f',
    950: '#000000',
  },
}
SCSS
$custom: #4d165f;
$custom-light: #82598d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d165f",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 285.205,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32646,
    "c": 0.12844,
    "h": 316.4
  },
  "luminance": 0.02978
}

Semantic roles & 50–950 ramp

primary
#4D165F
secondary
#51963B
accent
#E5426B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D165F

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

Preview Lab → · Contrast checker → · Palette generator →

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