#5B0F28#5B0F28

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

Color values

HEX#5B0F28
RGBrgb(91, 15, 40)
HSLhsl(340, 72%, 21%)
HSVhsv(340, 84%, 36%)
CMYKcmyk(0%, 83.5%, 56%, 64.3%)
CIE-LABlab(18.88, 35.33, 5.05)
CIE-LCHlch(18.88, 35.69, 8.14°)
OKLaboklab(31.48% 0.1078 0.0131)
OKLCHoklch(31.48% 0.109 6.9)
XYZxyz(4.8687, 2.7197, 2.2757)
Luminance0.0272 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F28 #0F5B42
analogous
#5B0F4E #5B0F28 #5B1C0F
triadic
#5B0F28 #285B0F #0F285B
tetradic
#5B0F28 #4E5B0F #0F5B42 #1C0F5B
square
#5B0F28 #4E5B0F #0F5B42 #1C0F5B
split-complementary
#5B0F28 #0F5B1C #0F4E5B
monochromatic
#1A040C #260611 #5B0F28 #90183F #C42056

Accessibility & contrast

On white

13.60
#5B0F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#5B0F28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F28
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F28#FFFFFF#000000##FFFFFF
##5B0F281.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b0f28;
/* rgb */ color: rgb(91, 15, 40);
/* oklch */ color: oklch(31.5% 0.109 6.9);
Tailwind
colors: {
  custom: {
    50: '#8e5661',
    500: '#5b0f28',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f28;
$custom-light: #8e5661;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f28",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 40
  },
  "hsl": {
    "h": 340.263,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31478,
    "c": 0.10857,
    "h": 6.9
  },
  "luminance": 0.02719
}

Semantic roles & 50–950 ramp

primary
#5B0F28
secondary
#319574
accent
#EEB339
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5B0F28

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

Preview Lab → · Contrast checker → · Palette generator →

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