#5B0F2A#5B0F2A

#5B0F2A is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.5% C 0.109 H 5.1°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#5B0F2A
RGBrgb(91, 15, 42)
HSLhsl(339, 72%, 21%)
HSVhsv(339, 84%, 36%)
CMYKcmyk(0%, 83.5%, 53.8%, 64.3%)
CIE-LABlab(18.94, 35.52, 3.71)
CIE-LCHlch(18.94, 35.71, 5.97°)
OKLaboklab(31.54% 0.1086 0.0098)
OKLCHoklch(31.54% 0.109 5.1)
XYZxyz(4.9036, 2.7336, 2.4595)
Luminance0.0273 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F2A #0F5B40
analogous
#5B0F50 #5B0F2A #5B1A0F
triadic
#5B0F2A #2A5B0F #0F2A5B
tetradic
#5B0F2A #505B0F #0F5B40 #1A0F5B
square
#5B0F2A #505B0F #0F5B40 #1A0F5B
split-complementary
#5B0F2A #0F5B1A #0F505B
monochromatic
#1A040C #260612 #5B0F2A #901842 #C4205A

Accessibility & contrast

On white

13.58
#5B0F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0F2A
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F2A#FFFFFF#000000##FFFFFF
##5B0F2A1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22242B
Deuteranopia (green-blind)
#363328
Tritanopia (blue-blind)
#64001B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5b0f2a;
/* rgb */ color: rgb(91, 15, 42);
/* oklch */ color: oklch(31.5% 0.109 5.1);
Tailwind
colors: {
  custom: {
    50: '#8e5663',
    500: '#5b0f2a',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f2a;
$custom-light: #8e5663;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f2a",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 42
  },
  "hsl": {
    "h": 338.684,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31541,
    "c": 0.10906,
    "h": 5.1
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#5B0F2A
secondary
#319571
accent
#EEAE39
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5B0F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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