#5B1127#5B1127

#5B1127 is a dark, moderate pink. Relative luminance 0.028; OKLCH L 31.6% C 0.106 H 8.4°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#5B1127
RGBrgb(91, 17, 39)
HSLhsl(342, 69%, 21%)
HSVhsv(342, 81%, 36%)
CMYKcmyk(0%, 81.3%, 57.1%, 64.3%)
CIE-LABlab(19.11, 34.53, 6.08)
CIE-LCHlch(19.11, 35.06, 9.99°)
OKLaboklab(31.63% 0.1051 0.0156)
OKLCHoklch(31.63% 0.106 8.4)
XYZxyz(4.8815, 2.7722, 2.1971)
Luminance0.0277 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1127 #115B45
analogous
#5B114C #5B1127 #5B2011
triadic
#5B1127 #275B11 #11275B
tetradic
#5B1127 #4C5B11 #115B45 #20115B
square
#5B1127 #4C5B11 #115B45 #20115B
split-complementary
#5B1127 #115B20 #114C5B
monochromatic
#1A050B #270711 #5B1127 #8F1B3D #C22453

Accessibility & contrast

On white

13.51
#5B1127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#5B1127 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1127
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1127#FFFFFF#000000##FFFFFF
##5B11271.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242527
Deuteranopia (green-blind)
#373425
Tritanopia (blue-blind)
#64001A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5b1127;
/* rgb */ color: rgb(91, 17, 39);
/* oklch */ color: oklch(31.6% 0.106 8.4);
Tailwind
colors: {
  custom: {
    50: '#8e5760',
    500: '#5b1127',
    950: '#000000',
  },
}
SCSS
$custom: #5b1127;
$custom-light: #8e5760;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1127",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 39
  },
  "hsl": {
    "h": 342.162,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31633,
    "c": 0.10621,
    "h": 8.4
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#5B1127
secondary
#349477
accent
#EBB73C
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5B1127

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

Preview Lab → · Contrast checker → · Palette generator →

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