#5F164E#5F164E

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

Color values

HEX#5F164E
RGBrgb(95, 22, 78)
HSLhsl(314, 62%, 23%)
HSVhsv(314, 77%, 37%)
CMYKcmyk(0%, 76.8%, 17.9%, 62.7%)
CIE-LABlab(22.15, 38.78, -16.41)
CIE-LCHlch(22.15, 42.11, 337.06°)
OKLaboklab(34.52% 0.1151 -0.0444)
OKLCHoklch(34.52% 0.123 338.9)
XYZxyz(6.3815, 3.5574, 7.5568)
Luminance0.0356 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F164E #165F27
analogous
#4B165F #5F164E #5F1629
triadic
#5F164E #4E5F16 #164E5F
tetradic
#5F164E #5F4B16 #165F27 #16295F
square
#5F164E #5F4B16 #165F27 #16295F
split-complementary
#5F164E #295F16 #165F4B
monochromatic
#190614 #2D0A25 #5F164E #912277 #C22DA0

Accessibility & contrast

On white

12.27
#5F164E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F164E
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F164E#FFFFFF#000000##FFFFFF
##5F164E1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2E50
Deuteranopia (green-blind)
#32394C
Tritanopia (blue-blind)
#651930
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f164e;
/* rgb */ color: rgb(95, 22, 78);
/* oklch */ color: oklch(34.5% 0.123 338.9);
Tailwind
colors: {
  custom: {
    50: '#8f5b7f',
    500: '#5f164e',
    950: '#000000',
  },
}
SCSS
$custom: #5f164e;
$custom-light: #8f5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f164e",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 78
  },
  "hsl": {
    "h": 313.973,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34519,
    "c": 0.12334,
    "h": 338.9
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#5F164E
secondary
#3B9650
accent
#E56842
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F164E

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

Preview Lab → · Contrast checker → · Palette generator →

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