#5F173A#5F173A

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

Color values

HEX#5F173A
RGBrgb(95, 23, 58)
HSLhsl(331, 61%, 23%)
HSVhsv(331, 76%, 37%)
CMYKcmyk(0%, 75.8%, 38.9%, 62.7%)
CIE-LABlab(21.40, 35.52, -3.86)
CIE-LCHlch(21.40, 35.73, 353.81°)
OKLaboklab(33.68% 0.1089 -0.0097)
OKLCHoklch(33.68% 0.109 354.9)
XYZxyz(5.7898, 3.3519, 4.3442)
Luminance0.0335 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F173A #175F3C
analogous
#5F175E #5F173A #5F1817
triadic
#5F173A #3A5F17 #173A5F
tetradic
#5F173A #5E5F17 #175F3C #18175F
square
#5F173A #5E5F17 #175F3C #18175F
split-complementary
#5F173A #175F18 #175E5F
monochromatic
#19060F #2E0B1C #5F173A #902358 #C22F76

Accessibility & contrast

On white

12.57
#5F173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F173A
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F173A#FFFFFF#000000##FFFFFF
##5F173A1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242B3B
Deuteranopia (green-blind)
#383838
Tritanopia (blue-blind)
#671026
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f173a;
/* rgb */ color: rgb(95, 23, 58);
/* oklch */ color: oklch(33.7% 0.109 354.9);
Tailwind
colors: {
  custom: {
    50: '#905b70',
    500: '#5f173a',
    950: '#000000',
  },
}
SCSS
$custom: #5f173a;
$custom-light: #905b70;
$custom-dark: #000000;
JSON
{
  "hex": "#5f173a",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 330.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33681,
    "c": 0.10928,
    "h": 354.9
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#5F173A
secondary
#3C966A
accent
#E49644
background
#F9F5F6
surface
#F1E9EC
border
#CBC5C7
text
#0D0407
muted
#7E797A

Preview Lab

Preview with #5F173A

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

Preview Lab → · Contrast checker → · Palette generator →

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