#5F172B#5F172B

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

Color values

HEX#5F172B
RGBrgb(95, 23, 43)
HSLhsl(343, 61%, 23%)
HSVhsv(343, 76%, 37%)
CMYKcmyk(0%, 75.8%, 54.7%, 62.7%)
CIE-LABlab(20.91, 33.87, 5.90)
CIE-LCHlch(20.91, 34.38, 9.88°)
OKLaboklab(33.16% 0.103 0.0152)
OKLCHoklch(33.16% 0.104 8.4)
XYZxyz(5.4622, 3.2208, 2.6191)
Luminance0.0322 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F172B #175F4B
analogous
#5F174F #5F172B #5F2717
triadic
#5F172B #2B5F17 #172B5F
tetradic
#5F172B #4F5F17 #175F4B #27175F
square
#5F172B #4F5F17 #175F4B #27175F
split-complementary
#5F172B #175F27 #174F5F
monochromatic
#19060B #2E0B15 #5F172B #902341 #C22F58

Accessibility & contrast

On white

12.77
#5F172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5F172B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F172B
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F172B#FFFFFF#000000##FFFFFF
##5F172B1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28292B
Deuteranopia (green-blind)
#3B3829
Tritanopia (blue-blind)
#68081F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5f172b;
/* rgb */ color: rgb(95, 23, 43);
/* oklch */ color: oklch(33.2% 0.104 8.4);
Tailwind
colors: {
  custom: {
    50: '#915a64',
    500: '#5f172b',
    950: '#000000',
  },
}
SCSS
$custom: #5f172b;
$custom-light: #915a64;
$custom-dark: #000000;
JSON
{
  "hex": "#5f172b",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 343.333,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33155,
    "c": 0.10413,
    "h": 8.4
  },
  "luminance": 0.0322
}

Semantic roles & 50–950 ramp

primary
#5F172B
secondary
#3C967D
accent
#E4B844
background
#F9F5F5
surface
#F2E9EA
border
#CCC5C6
text
#0D0405
muted
#7E7979

Preview Lab

Preview with #5F172B

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

Preview Lab → · Contrast checker → · Palette generator →

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