#5F154D#5F154D

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

Color values

HEX#5F154D
RGBrgb(95, 21, 77)
HSLhsl(315, 64%, 23%)
HSVhsv(315, 78%, 37%)
CMYKcmyk(0%, 77.9%, 18.9%, 62.7%)
CIE-LABlab(21.96, 39.00, -16.03)
CIE-LCHlch(21.96, 42.16, 337.66°)
OKLaboklab(34.37% 0.1161 -0.0433)
OKLCHoklch(34.37% 0.124 339.5)
XYZxyz(6.3272, 3.5057, 7.3632)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F154D #155F27
analogous
#4C155F #5F154D #5F1528
triadic
#5F154D #4D5F15 #154D5F
tetradic
#5F154D #5F4C15 #155F27 #15285F
square
#5F154D #5F4C15 #155F27 #15285F
split-complementary
#5F154D #285F15 #155F4C
monochromatic
#190614 #2D0A24 #5F154D #912076 #C32B9E

Accessibility & contrast

On white

12.35
#5F154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5F154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F154D
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F154D#FFFFFF#000000##FFFFFF
##5F154D1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f154d;
/* rgb */ color: rgb(95, 21, 77);
/* oklch */ color: oklch(34.4% 0.124 339.5);
Tailwind
colors: {
  custom: {
    50: '#8f5b7f',
    500: '#5f154d',
    950: '#000000',
  },
}
SCSS
$custom: #5f154d;
$custom-light: #8f5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f154d",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 314.595,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34368,
    "c": 0.12387,
    "h": 339.5
  },
  "luminance": 0.03505
}

Semantic roles & 50–950 ramp

primary
#5F154D
secondary
#3A9650
accent
#E76941
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F154D

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

Preview Lab → · Contrast checker → · Palette generator →

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