#5B104B#5B104B

#5B104B is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.1% C 0.126 H 338.4°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#5B104B
RGBrgb(91, 16, 75)
HSLhsl(313, 70%, 21%)
HSVhsv(313, 82%, 36%)
CMYKcmyk(0%, 82.4%, 17.6%, 64.3%)
CIE-LABlab(20.45, 39.38, -17.08)
CIE-LCHlch(20.45, 42.93, 336.55°)
OKLaboklab(33.09% 0.1168 -0.0463)
OKLCHoklch(33.09% 0.126 338.4)
XYZxyz(5.7698, 3.1033, 6.9504)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B104B #105B20
analogous
#45105B #5B104B #5B1025
triadic
#5B104B #4B5B10 #104B5B
tetradic
#5B104B #5B4510 #105B20 #10255B
square
#5B104B #5B4510 #105B20 #10255B
split-complementary
#5B104B #255B10 #105B45
monochromatic
#1A0515 #270720 #5B104B #8F1976 #C322A1

Accessibility & contrast

On white

12.96
#5B104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5B104B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B104B
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B104B#FFFFFF#000000##FFFFFF
##5B104B1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142A4D
Deuteranopia (green-blind)
#2E3549
Tritanopia (blue-blind)
#61142C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b104b;
/* rgb */ color: rgb(91, 16, 75);
/* oklch */ color: oklch(33.1% 0.126 338.4);
Tailwind
colors: {
  custom: {
    50: '#8c587d',
    500: '#5b104b',
    950: '#000000',
  },
}
SCSS
$custom: #5b104b;
$custom-light: #8c587d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b104b",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 312.8,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33094,
    "c": 0.12567,
    "h": 338.4
  },
  "luminance": 0.03103
}

Semantic roles & 50–950 ramp

primary
#5B104B
secondary
#339447
accent
#ED613B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B104B

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

Preview Lab → · Contrast checker → · Palette generator →

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