#5F164F#5F164F

#5F164F is a dark, vivid pink. Relative luminance 0.036; OKLCH L 34.6% C 0.124 H 338.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#5F164F
RGBrgb(95, 22, 79)
HSLhsl(313, 62%, 23%)
HSVhsv(313, 77%, 37%)
CMYKcmyk(0%, 76.8%, 16.8%, 62.7%)
CIE-LABlab(22.20, 38.94, -17.01)
CIE-LCHlch(22.20, 42.49, 336.40°)
OKLaboklab(34.57% 0.1152 -0.0461)
OKLCHoklch(34.57% 0.124 338.2)
XYZxyz(6.4176, 3.5718, 7.7471)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F164F #165F26
analogous
#4A165F #5F164F #5F162A
triadic
#5F164F #4F5F16 #164F5F
tetradic
#5F164F #5F4A16 #165F26 #162A5F
square
#5F164F #5F4A16 #165F26 #162A5F
split-complementary
#5F164F #2A5F16 #165F4A
monochromatic
#190615 #2D0A26 #5F164F #912278 #C22DA2

Accessibility & contrast

On white

12.25
#5F164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F164F
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F164F#FFFFFF#000000##FFFFFF
##5F164F1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192E51
Deuteranopia (green-blind)
#31394D
Tritanopia (blue-blind)
#651A30
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f164f;
/* rgb */ color: rgb(95, 22, 79);
/* oklch */ color: oklch(34.6% 0.124 338.2);
Tailwind
colors: {
  custom: {
    50: '#8f5b80',
    500: '#5f164f',
    950: '#000000',
  },
}
SCSS
$custom: #5f164f;
$custom-light: #8f5b80;
$custom-dark: #000000;
JSON
{
  "hex": "#5f164f",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 313.151,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34573,
    "c": 0.1241,
    "h": 338.2
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#5F164F
secondary
#3B964F
accent
#E56642
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F164F

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

Preview Lab → · Contrast checker → · Palette generator →

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