#5B0F47#5B0F47

#5B0F47 is a dark, vivid pink. Relative luminance 0.030; OKLCH L 32.8% C 0.124 H 341.2°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#5B0F47
RGBrgb(91, 15, 71)
HSLhsl(316, 72%, 21%)
HSVhsv(316, 84%, 36%)
CMYKcmyk(0%, 83.5%, 22%, 64.3%)
CIE-LABlab(20.13, 39.09, -14.85)
CIE-LCHlch(20.13, 41.82, 339.20°)
OKLaboklab(32.79% 0.1172 -0.04)
OKLCHoklch(32.79% 0.124 341.2)
XYZxyz(5.6227, 3.0213, 6.2471)
Luminance0.0302 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F47 #0F5B23
analogous
#490F5B #5B0F47 #5B0F21
triadic
#5B0F47 #475B0F #0F475B
tetradic
#5B0F47 #5B490F #0F5B23 #0F215B
square
#5B0F47 #5B490F #0F5B23 #0F215B
split-complementary
#5B0F47 #215B0F #0F5B49
monochromatic
#1A0414 #26061E #5B0F47 #901870 #C42099

Accessibility & contrast

On white

13.09
#5B0F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5B0F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F47
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F47#FFFFFF#000000##FFFFFF
##5B0F471.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162948
Deuteranopia (green-blind)
#2F3545
Tritanopia (blue-blind)
#61112A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0f47;
/* rgb */ color: rgb(91, 15, 71);
/* oklch */ color: oklch(32.8% 0.124 341.2);
Tailwind
colors: {
  custom: {
    50: '#8d577a',
    500: '#5b0f47',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f47;
$custom-light: #8d577a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f47",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 71
  },
  "hsl": {
    "h": 315.789,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32792,
    "c": 0.12388,
    "h": 341.2
  },
  "luminance": 0.03021
}

Semantic roles & 50–950 ramp

primary
#5B0F47
secondary
#31954B
accent
#EE6939
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B0F47

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

Preview Lab → · Contrast checker → · Palette generator →

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