#5B163B#5B163B

#5B163B is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.9% C 0.107 H 351.7°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#5B163B
RGBrgb(91, 22, 59)
HSLhsl(328, 61%, 22%)
HSVhsv(328, 76%, 36%)
CMYKcmyk(0%, 75.8%, 35.2%, 64.3%)
CIE-LABlab(20.50, 34.80, -5.99)
CIE-LCHlch(20.50, 35.31, 350.24°)
OKLaboklab(32.88% 0.1064 -0.0155)
OKLCHoklch(32.88% 0.107 351.7)
XYZxyz(5.3910, 3.1143, 4.4541)
Luminance0.0311 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B163B #165B36
analogous
#59165B #5B163B #5B1619
triadic
#5B163B #3B5B16 #163B5B
tetradic
#5B163B #5B5916 #165B36 #16195B
square
#5B163B #5B5916 #165B36 #16195B
split-complementary
#5B163B #195B16 #165B59
monochromatic
#190610 #2A0A1B #5B163B #8C225B #BE2E7B

Accessibility & contrast

On white

12.94
#5B163B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5B163B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B163B
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B163B#FFFFFF#000000##FFFFFF
##5B163B1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21293C
Deuteranopia (green-blind)
#353639
Tritanopia (blue-blind)
#621126
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b163b;
/* rgb */ color: rgb(91, 22, 59);
/* oklch */ color: oklch(32.9% 0.107 351.7);
Tailwind
colors: {
  custom: {
    50: '#8d5a70',
    500: '#5b163b',
    950: '#000000',
  },
}
SCSS
$custom: #5b163b;
$custom-light: #8d5a70;
$custom-dark: #000000;
JSON
{
  "hex": "#5b163b",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 59
  },
  "hsl": {
    "h": 327.826,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.3288,
    "c": 0.10748,
    "h": 351.7
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

primary
#5B163B
secondary
#3B9263
accent
#E48E44
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0D0407
muted
#7D797A

Preview Lab

Preview with #5B163B

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

Preview Lab → · Contrast checker → · Palette generator →

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