#5F1837#5F1837

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

Color values

HEX#5F1837
RGBrgb(95, 24, 55)
HSLhsl(334, 60%, 23%)
HSVhsv(334, 75%, 37%)
CMYKcmyk(0%, 74.7%, 42.1%, 62.7%)
CIE-LABlab(21.44, 34.74, -1.71)
CIE-LCHlch(21.44, 34.78, 357.18°)
OKLaboklab(33.67% 0.1065 -0.0041)
OKLCHoklch(33.67% 0.107 357.8)
XYZxyz(5.7359, 3.3627, 3.9607)
Luminance0.0336 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1837 #185F40
analogous
#5F185A #5F1837 #5F1C18
triadic
#5F1837 #375F18 #18375F
tetradic
#5F1837 #5A5F18 #185F40 #1C185F
square
#5F1837 #5A5F18 #185F40 #1C185F
split-complementary
#5F1837 #185F1C #185A5F
monochromatic
#18060E #2E0C1B #5F1837 #902453 #C13170

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F1837#FFFFFF#000000##FFFFFF
##5F18371.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)
#262B38
Deuteranopia (green-blind)
#393835
Tritanopia (blue-blind)
#671025
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f1837;
/* rgb */ color: rgb(95, 24, 55);
/* oklch */ color: oklch(33.7% 0.107 357.8);
Tailwind
colors: {
  custom: {
    50: '#905b6d',
    500: '#5f1837',
    950: '#000000',
  },
}
SCSS
$custom: #5f1837;
$custom-light: #905b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1837",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 55
  },
  "hsl": {
    "h": 333.803,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33674,
    "c": 0.10655,
    "h": 357.8
  },
  "luminance": 0.03362
}

Semantic roles & 50–950 ramp

primary
#5F1837
secondary
#3D956F
accent
#E39E45
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0407
muted
#7E797A

Preview Lab

Preview with #5F1837

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

Preview Lab → · Contrast checker → · Palette generator →

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