#5B104A#5B104A

#5B104A is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.0% C 0.125 H 339.1°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#5B104A
RGBrgb(91, 16, 74)
HSLhsl(314, 70%, 21%)
HSVhsv(314, 82%, 36%)
CMYKcmyk(0%, 82.4%, 18.7%, 64.3%)
CIE-LABlab(20.40, 39.23, -16.48)
CIE-LCHlch(20.40, 42.55, 337.21°)
OKLaboklab(33.04% 0.1167 -0.0446)
OKLCHoklch(33.04% 0.125 339.1)
XYZxyz(5.7359, 3.0897, 6.7715)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B104A #105B21
analogous
#46105B #5B104A #5B1024
triadic
#5B104A #4A5B10 #104A5B
tetradic
#5B104A #5B4610 #105B21 #10245B
square
#5B104A #5B4610 #105B21 #10245B
split-complementary
#5B104A #245B10 #105B46
monochromatic
#1A0515 #270720 #5B104A #8F1974 #C3229F

Accessibility & contrast

On white

12.98
#5B104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B104A
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B104A#FFFFFF#000000##FFFFFF
##5B104A1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152A4C
Deuteranopia (green-blind)
#2E3548
Tritanopia (blue-blind)
#61132C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b104a;
/* rgb */ color: rgb(91, 16, 74);
/* oklch */ color: oklch(33.0% 0.125 339.1);
Tailwind
colors: {
  custom: {
    50: '#8c587c',
    500: '#5b104a',
    950: '#000000',
  },
}
SCSS
$custom: #5b104a;
$custom-light: #8c587c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b104a",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 313.6,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33038,
    "c": 0.12493,
    "h": 339.1
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#5B104A
secondary
#339449
accent
#ED633B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B104A

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

Preview Lab → · Contrast checker → · Palette generator →

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