#5B0F31#5B0F31

#5B0F31 is a dark, moderate pink. Relative luminance 0.028; OKLCH L 31.8% C 0.111 H 359.0°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#5B0F31
RGBrgb(91, 15, 49)
HSLhsl(333, 72%, 21%)
HSVhsv(333, 84%, 36%)
CMYKcmyk(0%, 83.5%, 46.2%, 64.3%)
CIE-LABlab(19.17, 36.23, -0.93)
CIE-LCHlch(19.17, 36.24, 358.53°)
OKLaboklab(31.79% 0.1114 -0.002)
OKLCHoklch(31.79% 0.111 359)
XYZxyz(5.0400, 2.7882, 3.1779)
Luminance0.0279 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F31 #0F5B39
analogous
#5B0F57 #5B0F31 #5B130F
triadic
#5B0F31 #315B0F #0F315B
tetradic
#5B0F31 #575B0F #0F5B39 #130F5B
square
#5B0F31 #575B0F #0F5B39 #130F5B
split-complementary
#5B0F31 #0F5B13 #0F575B
monochromatic
#1A040E #260615 #5B0F31 #90184D #C4206A

Accessibility & contrast

On white

13.48
#5B0F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#5B0F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F31
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F31#FFFFFF#000000##FFFFFF
##5B0F311.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202532
Deuteranopia (green-blind)
#35342F
Tritanopia (blue-blind)
#63031E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5b0f31;
/* rgb */ color: rgb(91, 15, 49);
/* oklch */ color: oklch(31.8% 0.111 359.0);
Tailwind
colors: {
  custom: {
    50: '#8e5668',
    500: '#5b0f31',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f31;
$custom-light: #8e5668;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f31",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 49
  },
  "hsl": {
    "h": 333.158,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31786,
    "c": 0.11138,
    "h": 359
  },
  "luminance": 0.02788
}

Semantic roles & 50–950 ramp

primary
#5B0F31
secondary
#319568
accent
#EE9D39
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0306
muted
#7E787A

Preview Lab

Preview with #5B0F31

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

Preview Lab → · Contrast checker → · Palette generator →

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