#5F173B#5F173B

#5F173B is a dark, moderate pink. Relative luminance 0.034; OKLCH L 33.7% C 0.110 H 354.0°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#5F173B
RGBrgb(95, 23, 59)
HSLhsl(330, 61%, 23%)
HSVhsv(330, 76%, 37%)
CMYKcmyk(0%, 75.8%, 37.9%, 62.7%)
CIE-LABlab(21.44, 35.65, -4.49)
CIE-LCHlch(21.44, 35.93, 352.82°)
OKLaboklab(33.72% 0.1092 -0.0114)
OKLCHoklch(33.72% 0.11 354)
XYZxyz(5.8155, 3.3621, 4.4795)
Luminance0.0336 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F173B #175F3B
analogous
#5F175F #5F173B #5F1717
triadic
#5F173B #3B5F17 #173B5F
tetradic
#5F173B #5F5F17 #175F3B #17175F
square
#5F173B #5F5F17 #175F3B #17175F
split-complementary
#5F173B #175F17 #175F5F
monochromatic
#19060F #2E0B1C #5F173B #90235A #C22F78

Accessibility & contrast

On white

12.56
#5F173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5F173B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F173B
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F173B#FFFFFF#000000##FFFFFF
##5F173B1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242B3C
Deuteranopia (green-blind)
#383839
Tritanopia (blue-blind)
#671126
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f173b;
/* rgb */ color: rgb(95, 23, 59);
/* oklch */ color: oklch(33.7% 0.110 354.0);
Tailwind
colors: {
  custom: {
    50: '#905b70',
    500: '#5f173b',
    950: '#000000',
  },
}
SCSS
$custom: #5f173b;
$custom-light: #905b70;
$custom-dark: #000000;
JSON
{
  "hex": "#5f173b",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 330,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33721,
    "c": 0.10978,
    "h": 354
  },
  "luminance": 0.03361
}

Semantic roles & 50–950 ramp

primary
#5F173B
secondary
#3C9669
accent
#E49444
background
#F9F5F6
surface
#F1E9EC
border
#CBC5C7
text
#0D0407
muted
#7E797A

Preview Lab

Preview with #5F173B

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

Preview Lab → · Contrast checker → · Palette generator →

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