#5B163F#5B163F

#5B163F is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.1% C 0.110 H 348.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#5B163F
RGBrgb(91, 22, 63)
HSLhsl(324, 61%, 22%)
HSVhsv(324, 76%, 36%)
CMYKcmyk(0%, 75.8%, 30.8%, 64.3%)
CIE-LABlab(20.66, 35.35, -8.51)
CIE-LCHlch(20.66, 36.36, 346.46°)
OKLaboklab(33.06% 0.1075 -0.0224)
OKLCHoklch(33.06% 0.11 348.3)
XYZxyz(5.4988, 3.1574, 5.0215)
Luminance0.0316 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B163F #165B32
analogous
#55165B #5B163F #5B161C
triadic
#5B163F #3F5B16 #163F5B
tetradic
#5B163F #5B5516 #165B32 #161C5B
square
#5B163F #5B5516 #165B32 #161C5B
split-complementary
#5B163F #1C5B16 #165B55
monochromatic
#190611 #2A0A1D #5B163F #8C2261 #BE2E83

Accessibility & contrast

On white

12.87
#5B163F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5B163F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B163F
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B163F#FFFFFF#000000##FFFFFF
##5B163F1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202A40
Deuteranopia (green-blind)
#34363D
Tritanopia (blue-blind)
#621328
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b163f;
/* rgb */ color: rgb(91, 22, 63);
/* oklch */ color: oklch(33.1% 0.110 348.3);
Tailwind
colors: {
  custom: {
    50: '#8c5a74',
    500: '#5b163f',
    950: '#000000',
  },
}
SCSS
$custom: #5b163f;
$custom-light: #8c5a74;
$custom-dark: #000000;
JSON
{
  "hex": "#5b163f",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 63
  },
  "hsl": {
    "h": 324.348,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33057,
    "c": 0.10983,
    "h": 348.3
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#5B163F
secondary
#3B925E
accent
#E48544
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5B163F

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

Preview Lab → · Contrast checker → · Palette generator →

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