#5B0F40#5B0F40

#5B0F40 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.4% C 0.119 H 346.5°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#5B0F40
RGBrgb(91, 15, 64)
HSLhsl(321, 72%, 21%)
HSVhsv(321, 84%, 36%)
CMYKcmyk(0%, 83.5%, 29.7%, 64.3%)
CIE-LABlab(19.79, 38.09, -10.54)
CIE-LCHlch(19.79, 39.52, 344.53°)
OKLaboklab(32.43% 0.1159 -0.0279)
OKLCHoklch(32.43% 0.119 346.5)
XYZxyz(5.4109, 2.9366, 5.1314)
Luminance0.0294 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F40 #0F5B2A
analogous
#500F5B #5B0F40 #5B0F1A
triadic
#5B0F40 #405B0F #0F405B
tetradic
#5B0F40 #5B500F #0F5B2A #0F1A5B
square
#5B0F40 #5B500F #0F5B2A #0F1A5B
split-complementary
#5B0F40 #1A5B0F #0F5B50
monochromatic
#1A0412 #26061B #5B0F40 #901865 #C4208A

Accessibility & contrast

On white

13.23
#5B0F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5B0F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F40
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F40#FFFFFF#000000##FFFFFF
##5B0F401.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2841
Deuteranopia (green-blind)
#31343E
Tritanopia (blue-blind)
#620C26
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b0f40;
/* rgb */ color: rgb(91, 15, 64);
/* oklch */ color: oklch(32.4% 0.119 346.5);
Tailwind
colors: {
  custom: {
    50: '#8d5774',
    500: '#5b0f40',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f40;
$custom-light: #8d5774;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f40",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 321.316,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32434,
    "c": 0.11919,
    "h": 346.5
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#5B0F40
secondary
#319555
accent
#EE7A39
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0D0308
muted
#7D787B

Preview Lab

Preview with #5B0F40

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

Preview Lab → · Contrast checker → · Palette generator →

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