#5F164C#5F164C

#5F164C is a dark, vivid pink. Relative luminance 0.035; OKLCH L 34.4% C 0.122 H 340.3°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#5F164C
RGBrgb(95, 22, 76)
HSLhsl(316, 62%, 23%)
HSVhsv(316, 77%, 37%)
CMYKcmyk(0%, 76.8%, 20%, 62.7%)
CIE-LABlab(22.05, 38.46, -15.22)
CIE-LCHlch(22.05, 41.36, 338.41°)
OKLaboklab(34.41% 0.1147 -0.041)
OKLCHoklch(34.41% 0.122 340.3)
XYZxyz(6.3109, 3.5291, 7.1849)
Luminance0.0353 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F164C #165F29
analogous
#4D165F #5F164C #5F1628
triadic
#5F164C #4C5F16 #164C5F
tetradic
#5F164C #5F4D16 #165F29 #16285F
square
#5F164C #5F4D16 #165F29 #16285F
split-complementary
#5F164C #285F16 #165F4D
monochromatic
#190614 #2D0A24 #5F164C #912274 #C22D9C

Accessibility & contrast

On white

12.31
#5F164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F164C
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F164C#FFFFFF#000000##FFFFFF
##5F164C1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2D4E
Deuteranopia (green-blind)
#32394A
Tritanopia (blue-blind)
#65182F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f164c;
/* rgb */ color: rgb(95, 22, 76);
/* oklch */ color: oklch(34.4% 0.122 340.3);
Tailwind
colors: {
  custom: {
    50: '#8f5b7e',
    500: '#5f164c',
    950: '#000000',
  },
}
SCSS
$custom: #5f164c;
$custom-light: #8f5b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f164c",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 315.616,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34413,
    "c": 0.12185,
    "h": 340.3
  },
  "luminance": 0.03529
}

Semantic roles & 50–950 ramp

primary
#5F164C
secondary
#3B9653
accent
#E56D42
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F164C

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

Preview Lab → · Contrast checker → · Palette generator →

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