#5B163E#5B163E

#5B163E is a dark, moderate pink. Relative luminance 0.031; OKLCH L 33.0% C 0.109 H 349.1°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#5B163E
RGBrgb(91, 22, 62)
HSLhsl(325, 61%, 22%)
HSVhsv(325, 76%, 36%)
CMYKcmyk(0%, 75.8%, 31.9%, 64.3%)
CIE-LABlab(20.62, 35.21, -7.88)
CIE-LCHlch(20.62, 36.08, 347.38°)
OKLaboklab(33.01% 0.1073 -0.0206)
OKLCHoklch(33.01% 0.109 349.1)
XYZxyz(5.4711, 3.1464, 4.8757)
Luminance0.0315 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B163E #165B33
analogous
#56165B #5B163E #5B161C
triadic
#5B163E #3E5B16 #163E5B
tetradic
#5B163E #5B5616 #165B33 #161C5B
square
#5B163E #5B5616 #165B33 #161C5B
split-complementary
#5B163E #1C5B16 #165B56
monochromatic
#190611 #2A0A1C #5B163E #8C2260 #BE2E81

Accessibility & contrast

On white

12.89
#5B163E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B163E
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B163E#FFFFFF#000000##FFFFFF
##5B163E1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202A3F
Deuteranopia (green-blind)
#34363C
Tritanopia (blue-blind)
#621327
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b163e;
/* rgb */ color: rgb(91, 22, 62);
/* oklch */ color: oklch(33.0% 0.109 349.1);
Tailwind
colors: {
  custom: {
    50: '#8c5a73',
    500: '#5b163e',
    950: '#000000',
  },
}
SCSS
$custom: #5b163e;
$custom-light: #8c5a73;
$custom-dark: #000000;
JSON
{
  "hex": "#5b163e",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 62
  },
  "hsl": {
    "h": 325.217,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33012,
    "c": 0.10922,
    "h": 349.1
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#5B163E
secondary
#3B925F
accent
#E48744
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5B163E

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

Preview Lab → · Contrast checker → · Palette generator →

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