#5B104D#5B104D

#5B104D is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.2% C 0.127 H 337.0°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#5B104D
RGBrgb(91, 16, 77)
HSLhsl(311, 70%, 21%)
HSVhsv(311, 82%, 36%)
CMYKcmyk(0%, 82.4%, 15.4%, 64.3%)
CIE-LABlab(20.56, 39.70, -18.27)
CIE-LCHlch(20.56, 43.70, 335.28°)
OKLaboklab(33.21% 0.117 -0.0498)
OKLCHoklch(33.21% 0.127 337)
XYZxyz(5.8393, 3.1311, 7.3166)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B104D #105B1E
analogous
#43105B #5B104D #5B1027
triadic
#5B104D #4D5B10 #104D5B
tetradic
#5B104D #5B4310 #105B1E #10275B
square
#5B104D #5B4310 #105B1E #10275B
split-complementary
#5B104D #275B10 #105B43
monochromatic
#1A0516 #270721 #5B104D #8F1979 #C322A5

Accessibility & contrast

On white

12.91
#5B104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5B104D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B104D
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B104D#FFFFFF#000000##FFFFFF
##5B104D1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122A4F
Deuteranopia (green-blind)
#2D364B
Tritanopia (blue-blind)
#60152D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b104d;
/* rgb */ color: rgb(91, 16, 77);
/* oklch */ color: oklch(33.2% 0.127 337.0);
Tailwind
colors: {
  custom: {
    50: '#8c587f',
    500: '#5b104d',
    950: '#000000',
  },
}
SCSS
$custom: #5b104d;
$custom-light: #8c587f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b104d",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 311.2,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33207,
    "c": 0.12717,
    "h": 337
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

primary
#5B104D
secondary
#339445
accent
#ED5C3B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B104D

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

Preview Lab → · Contrast checker → · Palette generator →

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