#5F1538#5F1538

#5F1538 is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.4% C 0.111 H 356.2°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#5F1538
RGBrgb(95, 21, 56)
HSLhsl(332, 64%, 23%)
HSVhsv(332, 78%, 37%)
CMYKcmyk(0%, 77.9%, 41.1%, 62.7%)
CIE-LABlab(21.04, 36.08, -3.00)
CIE-LCHlch(21.04, 36.20, 355.24°)
OKLaboklab(33.39% 0.1107 -0.0074)
OKLCHoklch(33.39% 0.111 356.2)
XYZxyz(5.7017, 3.2555, 4.0687)
Luminance0.0326 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1538 #155F3C
analogous
#5F155D #5F1538 #5F1715
triadic
#5F1538 #385F15 #15385F
tetradic
#5F1538 #5D5F15 #155F3C #17155F
square
#5F1538 #5D5F15 #155F3C #17155F
split-complementary
#5F1538 #155F17 #155D5F
monochromatic
#19060F #2D0A1A #5F1538 #912056 #C32B73

Accessibility & contrast

On white

12.72
#5F1538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1538
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1538#FFFFFF#000000##FFFFFF
##5F15381.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232A39
Deuteranopia (green-blind)
#383836
Tritanopia (blue-blind)
#670C24
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f1538;
/* rgb */ color: rgb(95, 21, 56);
/* oklch */ color: oklch(33.4% 0.111 356.2);
Tailwind
colors: {
  custom: {
    50: '#905a6e',
    500: '#5f1538',
    950: '#000000',
  },
}
SCSS
$custom: #5f1538;
$custom-light: #905a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1538",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 56
  },
  "hsl": {
    "h": 331.622,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.3339,
    "c": 0.11096,
    "h": 356.2
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#5F1538
secondary
#3A966A
accent
#E79841
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0407
muted
#7E797A

Preview Lab

Preview with #5F1538

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

Preview Lab → · Contrast checker → · Palette generator →

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