#5F172E#5F172E

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

Color values

HEX#5F172E
RGBrgb(95, 23, 46)
HSLhsl(341, 61%, 23%)
HSVhsv(341, 76%, 37%)
CMYKcmyk(0%, 75.8%, 51.6%, 62.7%)
CIE-LABlab(20.99, 34.16, 3.92)
CIE-LCHlch(20.99, 34.39, 6.55°)
OKLaboklab(33.25% 0.1043 0.0103)
OKLCHoklch(33.25% 0.105 5.7)
XYZxyz(5.5193, 3.2437, 2.9197)
Luminance0.0324 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F172E #175F48
analogous
#5F1752 #5F172E #5F2417
triadic
#5F172E #2E5F17 #172E5F
tetradic
#5F172E #525F17 #175F48 #24175F
square
#5F172E #525F17 #175F48 #24175F
split-complementary
#5F172E #175F24 #17525F
monochromatic
#19060C #2E0B16 #5F172E #902346 #C22F5E

Accessibility & contrast

On white

12.74
#5F172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F172E
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F172E#FFFFFF#000000##FFFFFF
##5F172E1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28292F
Deuteranopia (green-blind)
#3B382C
Tritanopia (blue-blind)
#680A20
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5f172e;
/* rgb */ color: rgb(95, 23, 46);
/* oklch */ color: oklch(33.2% 0.105 5.7);
Tailwind
colors: {
  custom: {
    50: '#915a66',
    500: '#5f172e',
    950: '#000000',
  },
}
SCSS
$custom: #5f172e;
$custom-light: #915a66;
$custom-dark: #000000;
JSON
{
  "hex": "#5f172e",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 340.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33247,
    "c": 0.1048,
    "h": 5.7
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#5F172E
secondary
#3C9679
accent
#E4B144
background
#F9F5F6
surface
#F2E9EB
border
#CCC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5F172E

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

Preview Lab → · Contrast checker → · Palette generator →

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