#5F172D#5F172D

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

Color values

HEX#5F172D
RGBrgb(95, 23, 45)
HSLhsl(342, 61%, 23%)
HSVhsv(342, 76%, 37%)
CMYKcmyk(0%, 75.8%, 52.6%, 62.7%)
CIE-LABlab(20.96, 34.06, 4.58)
CIE-LCHlch(20.96, 34.37, 7.66°)
OKLaboklab(33.22% 0.1039 0.012)
OKLCHoklch(33.22% 0.105 6.6)
XYZxyz(5.4998, 3.2359, 2.8171)
Luminance0.0323 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F172D #175F49
analogous
#5F1751 #5F172D #5F2517
triadic
#5F172D #2D5F17 #172D5F
tetradic
#5F172D #515F17 #175F49 #25175F
square
#5F172D #515F17 #175F49 #25175F
split-complementary
#5F172D #175F25 #17515F
monochromatic
#19060C #2E0B16 #5F172D #902344 #C22F5C

Accessibility & contrast

On white

12.75
#5F172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F172D
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F172D#FFFFFF#000000##FFFFFF
##5F172D1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f172d;
/* rgb */ color: rgb(95, 23, 45);
/* oklch */ color: oklch(33.2% 0.105 6.6);
Tailwind
colors: {
  custom: {
    50: '#915a65',
    500: '#5f172d',
    950: '#000000',
  },
}
SCSS
$custom: #5f172d;
$custom-light: #915a65;
$custom-dark: #000000;
JSON
{
  "hex": "#5f172d",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 341.667,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33216,
    "c": 0.10456,
    "h": 6.6
  },
  "luminance": 0.03235
}

Semantic roles & 50–950 ramp

primary
#5F172D
secondary
#3C967A
accent
#E4B344
background
#F9F5F6
surface
#F2E9EB
border
#CCC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5F172D

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

Preview Lab → · Contrast checker → · Palette generator →

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