#5F164D#5F164D

#5F164D is a dark, vivid pink. Relative luminance 0.035; OKLCH L 34.5% C 0.123 H 339.6°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#5F164D
RGBrgb(95, 22, 77)
HSLhsl(315, 62%, 23%)
HSVhsv(315, 77%, 37%)
CMYKcmyk(0%, 76.8%, 18.9%, 62.7%)
CIE-LABlab(22.10, 38.62, -15.82)
CIE-LCHlch(22.10, 41.73, 337.73°)
OKLaboklab(34.47% 0.1149 -0.0427)
OKLCHoklch(34.47% 0.123 339.6)
XYZxyz(6.3459, 3.5431, 7.3694)
Luminance0.0354 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F164D #165F28
analogous
#4C165F #5F164D #5F1628
triadic
#5F164D #4D5F16 #164D5F
tetradic
#5F164D #5F4C16 #165F28 #16285F
square
#5F164D #5F4C16 #165F28 #16285F
split-complementary
#5F164D #285F16 #165F4C
monochromatic
#190614 #2D0A25 #5F164D #912275 #C22D9E

Accessibility & contrast

On white

12.29
#5F164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5F164D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F164D
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F164D#FFFFFF#000000##FFFFFF
##5F164D1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2D4F
Deuteranopia (green-blind)
#32394B
Tritanopia (blue-blind)
#65192F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f164d;
/* rgb */ color: rgb(95, 22, 77);
/* oklch */ color: oklch(34.5% 0.123 339.6);
Tailwind
colors: {
  custom: {
    50: '#8f5b7f',
    500: '#5f164d',
    950: '#000000',
  },
}
SCSS
$custom: #5f164d;
$custom-light: #8f5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f164d",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 314.795,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34465,
    "c": 0.12259,
    "h": 339.6
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#5F164D
secondary
#3B9651
accent
#E56B42
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F164D

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

Preview Lab → · Contrast checker → · Palette generator →

#5F164D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva