#5B1338#5B1338

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

Color values

HEX#5B1338
RGBrgb(91, 19, 56)
HSLhsl(329, 65%, 22%)
HSVhsv(329, 79%, 36%)
CMYKcmyk(0%, 79.1%, 38.5%, 64.3%)
CIE-LABlab(19.95, 35.61, -4.72)
CIE-LCHlch(19.95, 35.92, 352.45°)
OKLaboklab(32.44% 0.1092 -0.012)
OKLCHoklch(32.44% 0.11 353.7)
XYZxyz(5.2614, 2.9760, 4.0380)
Luminance0.0297 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1338 #135B36
analogous
#5A135B #5B1338 #5B1314
triadic
#5B1338 #385B13 #13385B
tetradic
#5B1338 #5B5A13 #135B36 #13145B
square
#5B1338 #5B5A13 #135B36 #13145B
split-complementary
#5B1338 #145B13 #135B5A
monochromatic
#190510 #280819 #5B1338 #8E1E57 #C02876

Accessibility & contrast

On white

13.17
#5B1338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1338
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1338#FFFFFF#000000##FFFFFF
##5B13381.0013.171.6013.17
#FFFFFF13.171.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202839
Deuteranopia (green-blind)
#353536
Tritanopia (blue-blind)
#630C23
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b1338;
/* rgb */ color: rgb(91, 19, 56);
/* oklch */ color: oklch(32.4% 0.110 353.7);
Tailwind
colors: {
  custom: {
    50: '#8d586e',
    500: '#5b1338',
    950: '#000000',
  },
}
SCSS
$custom: #5b1338;
$custom-light: #8d586e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1338",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 56
  },
  "hsl": {
    "h": 329.167,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32438,
    "c": 0.10985,
    "h": 353.7
  },
  "luminance": 0.02975
}

Semantic roles & 50–950 ramp

primary
#5B1338
secondary
#379364
accent
#E8923F
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0D0407
muted
#7D797A

Preview Lab

Preview with #5B1338

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

Preview Lab → · Contrast checker → · Palette generator →

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