#5B104C#5B104C

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

Color values

HEX#5B104C
RGBrgb(91, 16, 76)
HSLhsl(312, 70%, 21%)
HSVhsv(312, 82%, 36%)
CMYKcmyk(0%, 82.4%, 16.5%, 64.3%)
CIE-LABlab(20.51, 39.54, -17.68)
CIE-LCHlch(20.51, 43.31, 335.91°)
OKLaboklab(33.15% 0.1169 -0.0481)
OKLCHoklch(33.15% 0.126 337.7)
XYZxyz(5.8043, 3.1171, 7.1320)
Luminance0.0312 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B104C #105B1F
analogous
#44105B #5B104C #5B1026
triadic
#5B104C #4C5B10 #104C5B
tetradic
#5B104C #5B4410 #105B1F #10265B
square
#5B104C #5B4410 #105B1F #10265B
split-complementary
#5B104C #265B10 #105B44
monochromatic
#1A0516 #270721 #5B104C #8F1977 #C322A3

Accessibility & contrast

On white

12.94
#5B104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B104C
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B104C#FFFFFF#000000##FFFFFF
##5B104C1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132A4E
Deuteranopia (green-blind)
#2D354A
Tritanopia (blue-blind)
#60152D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b104c;
/* rgb */ color: rgb(91, 16, 76);
/* oklch */ color: oklch(33.1% 0.126 337.7);
Tailwind
colors: {
  custom: {
    50: '#8c587e',
    500: '#5b104c',
    950: '#000000',
  },
}
SCSS
$custom: #5b104c;
$custom-light: #8c587e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b104c",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 312,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.3315,
    "c": 0.12641,
    "h": 337.7
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#5B104C
secondary
#339446
accent
#ED5F3B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B104C

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

Preview Lab → · Contrast checker → · Palette generator →

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