#5B152F#5B152F

#5B152F is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.3% C 0.103 H 2.4°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#5B152F
RGBrgb(91, 21, 47)
HSLhsl(338, 63%, 22%)
HSVhsv(338, 77%, 36%)
CMYKcmyk(0%, 76.9%, 48.4%, 64.3%)
CIE-LABlab(19.91, 33.76, 1.55)
CIE-LCHlch(19.91, 33.79, 2.63°)
OKLaboklab(32.3% 0.1034 0.0044)
OKLCHoklch(32.3% 0.103 2.4)
XYZxyz(5.0960, 2.9664, 2.9930)
Luminance0.0297 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B152F #155B41
analogous
#5B1552 #5B152F #5B1E15
triadic
#5B152F #2F5B15 #152F5B
tetradic
#5B152F #525B15 #155B41 #1E155B
square
#5B152F #525B15 #155B41 #1E155B
split-complementary
#5B152F #155B1E #15525B
monochromatic
#19060D #290A15 #5B152F #8D2049 #BE2C62

Accessibility & contrast

On white

13.18
#5B152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5B152F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B152F
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B152F#FFFFFF#000000##FFFFFF
##5B152F1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242730
Deuteranopia (green-blind)
#37352D
Tritanopia (blue-blind)
#630A20
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b152f;
/* rgb */ color: rgb(91, 21, 47);
/* oklch */ color: oklch(32.3% 0.103 2.4);
Tailwind
colors: {
  custom: {
    50: '#8d5967',
    500: '#5b152f',
    950: '#000000',
  },
}
SCSS
$custom: #5b152f;
$custom-light: #8d5967;
$custom-dark: #000000;
JSON
{
  "hex": "#5b152f",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 337.714,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32304,
    "c": 0.10347,
    "h": 2.4
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

primary
#5B152F
secondary
#399271
accent
#E6A942
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0406
muted
#7E797A

Preview Lab

Preview with #5B152F

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

Preview Lab → · Contrast checker → · Palette generator →

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