#5F172C#5F172C

#5F172C is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.2% C 0.104 H 7.5°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#5F172C
RGBrgb(95, 23, 44)
HSLhsl(343, 61%, 23%)
HSVhsv(343, 76%, 37%)
CMYKcmyk(0%, 75.8%, 53.7%, 62.7%)
CIE-LABlab(20.94, 33.96, 5.24)
CIE-LCHlch(20.94, 34.36, 8.77°)
OKLaboklab(33.18% 0.1035 0.0136)
OKLCHoklch(33.18% 0.104 7.5)
XYZxyz(5.4808, 3.2283, 2.7169)
Luminance0.0323 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F172C #175F4A
analogous
#5F1750 #5F172C #5F2617
triadic
#5F172C #2C5F17 #172C5F
tetradic
#5F172C #505F17 #175F4A #26175F
square
#5F172C #505F17 #175F4A #26175F
split-complementary
#5F172C #175F26 #17505F
monochromatic
#19060B #2E0B15 #5F172C #902343 #C22F5A

Accessibility & contrast

On white

12.76
#5F172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5F172C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F172C
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F172C#FFFFFF#000000##FFFFFF
##5F172C1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28292C
Deuteranopia (green-blind)
#3B382A
Tritanopia (blue-blind)
#680920
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5f172c;
/* rgb */ color: rgb(95, 23, 44);
/* oklch */ color: oklch(33.2% 0.104 7.5);
Tailwind
colors: {
  custom: {
    50: '#915a64',
    500: '#5f172c',
    950: '#000000',
  },
}
SCSS
$custom: #5f172c;
$custom-light: #915a64;
$custom-dark: #000000;
JSON
{
  "hex": "#5f172c",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 342.5,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33185,
    "c": 0.10434,
    "h": 7.5
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#5F172C
secondary
#3C967C
accent
#E4B544
background
#F9F5F6
surface
#F2E9EB
border
#CCC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5F172C

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

Preview Lab → · Contrast checker → · Palette generator →

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