#5F172F#5F172F

#5F172F is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.3% C 0.105 H 4.8°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#5F172F
RGBrgb(95, 23, 47)
HSLhsl(340, 61%, 23%)
HSVhsv(340, 76%, 37%)
CMYKcmyk(0%, 75.8%, 50.5%, 62.7%)
CIE-LABlab(21.02, 34.26, 3.26)
CIE-LCHlch(21.02, 34.42, 5.44°)
OKLaboklab(33.28% 0.1047 0.0087)
OKLCHoklch(33.28% 0.105 4.8)
XYZxyz(5.5392, 3.2516, 3.0247)
Luminance0.0325 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F172F #175F47
analogous
#5F1753 #5F172F #5F2317
triadic
#5F172F #2F5F17 #172F5F
tetradic
#5F172F #535F17 #175F47 #23175F
square
#5F172F #535F17 #175F47 #23175F
split-complementary
#5F172F #175F23 #17535F
monochromatic
#19060C #2E0B17 #5F172F #902347 #C22F60

Accessibility & contrast

On white

12.73
#5F172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F172F
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F172F#FFFFFF#000000##FFFFFF
##5F172F1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272930
Deuteranopia (green-blind)
#3A382D
Tritanopia (blue-blind)
#680B21
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f172f;
/* rgb */ color: rgb(95, 23, 47);
/* oklch */ color: oklch(33.3% 0.105 4.8);
Tailwind
colors: {
  custom: {
    50: '#915a67',
    500: '#5f172f',
    950: '#000000',
  },
}
SCSS
$custom: #5f172f;
$custom-light: #915a67;
$custom-dark: #000000;
JSON
{
  "hex": "#5f172f",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 340,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.3328,
    "c": 0.10506,
    "h": 4.8
  },
  "luminance": 0.03251
}

Semantic roles & 50–950 ramp

primary
#5F172F
secondary
#3C9678
accent
#E4AF44
background
#F9F5F6
surface
#F2E9EB
border
#CCC5C6
text
#0D0406
muted
#7E797A

Preview Lab

Preview with #5F172F

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

Preview Lab → · Contrast checker → · Palette generator →

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