#5B0F26#5B0F26

#5B0F26 is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.4% C 0.108 H 8.7°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#5B0F26
RGBrgb(91, 15, 38)
HSLhsl(342, 72%, 21%)
HSVhsv(342, 84%, 36%)
CMYKcmyk(0%, 83.5%, 58.2%, 64.3%)
CIE-LABlab(18.83, 35.15, 6.40)
CIE-LCHlch(18.83, 35.73, 10.32°)
OKLaboklab(31.42% 0.1069 0.0163)
OKLCHoklch(31.42% 0.108 8.7)
XYZxyz(4.8355, 2.7064, 2.1011)
Luminance0.0271 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F26 #0F5B44
analogous
#5B0F4C #5B0F26 #5B1E0F
triadic
#5B0F26 #265B0F #0F265B
tetradic
#5B0F26 #4C5B0F #0F5B44 #1E0F5B
square
#5B0F26 #4C5B0F #0F5B44 #1E0F5B
split-complementary
#5B0F26 #0F5B1E #0F4C5B
monochromatic
#1A040B #260610 #5B0F26 #90183C #C42052

Accessibility & contrast

On white

13.63
#5B0F26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0F26
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F26#FFFFFF#000000##FFFFFF
##5B0F261.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232426
Deuteranopia (green-blind)
#373324
Tritanopia (blue-blind)
#640019
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5b0f26;
/* rgb */ color: rgb(91, 15, 38);
/* oklch */ color: oklch(31.4% 0.108 8.7);
Tailwind
colors: {
  custom: {
    50: '#8e5660',
    500: '#5b0f26',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f26;
$custom-light: #8e5660;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f26",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 38
  },
  "hsl": {
    "h": 341.842,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31418,
    "c": 0.10816,
    "h": 8.7
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#5B0F26
secondary
#319576
accent
#EEB839
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0304
muted
#7E7879

Preview Lab

Preview with #5B0F26

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

Preview Lab → · Contrast checker → · Palette generator →

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