#5B162F#5B162F

#5B162F is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.4% C 0.102 H 2.8°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#5B162F
RGBrgb(91, 22, 47)
HSLhsl(338, 61%, 22%)
HSVhsv(338, 76%, 36%)
CMYKcmyk(0%, 75.8%, 48.4%, 64.3%)
CIE-LABlab(20.06, 33.34, 1.77)
CIE-LCHlch(20.06, 33.39, 3.04°)
OKLaboklab(32.42% 0.1021 0.0049)
OKLCHoklch(32.42% 0.102 2.8)
XYZxyz(5.1148, 3.0039, 2.9992)
Luminance0.0300 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B162F #165B42
analogous
#5B1652 #5B162F #5B2016
triadic
#5B162F #2F5B16 #162F5B
tetradic
#5B162F #525B16 #165B42 #20165B
square
#5B162F #525B16 #165B42 #20165B
split-complementary
#5B162F #165B20 #16525B
monochromatic
#19060D #2A0A16 #5B162F #8C2248 #BE2E62

Accessibility & contrast

On white

13.12
#5B162F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5B162F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B162F
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B162F#FFFFFF#000000##FFFFFF
##5B162F1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b162f;
/* rgb */ color: rgb(91, 22, 47);
/* oklch */ color: oklch(32.4% 0.102 2.8);
Tailwind
colors: {
  custom: {
    50: '#8d5967',
    500: '#5b162f',
    950: '#000000',
  },
}
SCSS
$custom: #5b162f;
$custom-light: #8d5967;
$custom-dark: #000000;
JSON
{
  "hex": "#5b162f",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 47
  },
  "hsl": {
    "h": 338.261,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32415,
    "c": 0.10217,
    "h": 2.8
  },
  "luminance": 0.03003
}

Semantic roles & 50–950 ramp

primary
#5B162F
secondary
#3B9272
accent
#E4AA44
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0406
muted
#7E797A

Preview Lab

Preview with #5B162F

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

Preview Lab → · Contrast checker → · Palette generator →

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