#5B1331#5B1331

#5B1331 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.2% C 0.107 H 360.0°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#5B1331
RGBrgb(91, 19, 49)
HSLhsl(335, 65%, 22%)
HSVhsv(335, 79%, 36%)
CMYKcmyk(0%, 79.1%, 46.2%, 64.3%)
CIE-LABlab(19.69, 34.78, -0.18)
CIE-LCHlch(19.69, 34.78, 359.71°)
OKLaboklab(32.16% 0.1067 -0.0001)
OKLCHoklch(32.16% 0.107 0)
XYZxyz(5.1020, 2.9123, 3.1986)
Luminance0.0291 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1331 #135B3D
analogous
#5B1355 #5B1331 #5B1913
triadic
#5B1331 #315B13 #13315B
tetradic
#5B1331 #555B13 #135B3D #19135B
square
#5B1331 #555B13 #135B3D #19135B
split-complementary
#5B1331 #135B19 #13555B
monochromatic
#19050E #280816 #5B1331 #8E1E4C #C02868

Accessibility & contrast

On white

13.27
#5B1331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#5B1331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1331
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1331#FFFFFF#000000##FFFFFF
##5B13311.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232732
Deuteranopia (green-blind)
#36352F
Tritanopia (blue-blind)
#630820
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b1331;
/* rgb */ color: rgb(91, 19, 49);
/* oklch */ color: oklch(32.2% 0.107 360.0);
Tailwind
colors: {
  custom: {
    50: '#8d5868',
    500: '#5b1331',
    950: '#000000',
  },
}
SCSS
$custom: #5b1331;
$custom-light: #8d5868;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1331",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 49
  },
  "hsl": {
    "h": 335,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32164,
    "c": 0.10672,
    "h": 360
  },
  "luminance": 0.02912
}

Semantic roles & 50–950 ramp

primary
#5B1331
secondary
#37936D
accent
#E8A23F
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0406
muted
#7E797A

Preview Lab

Preview with #5B1331

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

Preview Lab → · Contrast checker → · Palette generator →

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