#5B0F42#5B0F42

#5B0F42 is a dark, vivid pink. Relative luminance 0.030; OKLCH L 32.5% C 0.120 H 344.9°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#5B0F42
RGBrgb(91, 15, 66)
HSLhsl(320, 72%, 21%)
HSVhsv(320, 84%, 36%)
CMYKcmyk(0%, 83.5%, 27.5%, 64.3%)
CIE-LABlab(19.88, 38.37, -11.78)
CIE-LCHlch(19.88, 40.13, 342.93°)
OKLaboklab(32.53% 0.1163 -0.0314)
OKLCHoklch(32.53% 0.12 344.9)
XYZxyz(5.4688, 2.9597, 5.4365)
Luminance0.0296 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F42 #0F5B28
analogous
#4E0F5B #5B0F42 #5B0F1C
triadic
#5B0F42 #425B0F #0F425B
tetradic
#5B0F42 #5B4E0F #0F5B28 #0F1C5B
square
#5B0F42 #5B4E0F #0F5B28 #0F1C5B
split-complementary
#5B0F42 #1C5B0F #0F5B4E
monochromatic
#1A0413 #26061C #5B0F42 #901868 #C4208E

Accessibility & contrast

On white

13.19
#5B0F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0F42
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F42#FFFFFF#000000##FFFFFF
##5B0F421.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192843
Deuteranopia (green-blind)
#303540
Tritanopia (blue-blind)
#620E27
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b0f42;
/* rgb */ color: rgb(91, 15, 66);
/* oklch */ color: oklch(32.5% 0.120 344.9);
Tailwind
colors: {
  custom: {
    50: '#8d5776',
    500: '#5b0f42',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f42;
$custom-light: #8d5776;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f42",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 319.737,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32533,
    "c": 0.12048,
    "h": 344.9
  },
  "luminance": 0.02959
}

Semantic roles & 50–950 ramp

primary
#5B0F42
secondary
#319552
accent
#EE7539
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0D0308
muted
#7D787B

Preview Lab

Preview with #5B0F42

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

Preview Lab → · Contrast checker → · Palette generator →

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