#5B104E#5B104E

#5B104E is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.3% C 0.128 H 336.3°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#5B104E
RGBrgb(91, 16, 78)
HSLhsl(310, 70%, 21%)
HSVhsv(310, 82%, 36%)
CMYKcmyk(0%, 82.4%, 14.3%, 64.3%)
CIE-LABlab(20.62, 39.86, -18.87)
CIE-LCHlch(20.62, 44.10, 334.67°)
OKLaboklab(33.27% 0.1171 -0.0514)
OKLCHoklch(33.27% 0.128 336.3)
XYZxyz(5.8749, 3.1453, 7.5040)
Luminance0.0314 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B104E #105B1D
analogous
#42105B #5B104E #5B1028
triadic
#5B104E #4E5B10 #104E5B
tetradic
#5B104E #5B4210 #105B1D #10285B
square
#5B104E #5B4210 #105B1D #10285B
split-complementary
#5B104E #285B10 #105B42
monochromatic
#1A0516 #270721 #5B104E #8F197B #C322A7

Accessibility & contrast

On white

12.89
#5B104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B104E
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B104E#FFFFFF#000000##FFFFFF
##5B104E1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112A50
Deuteranopia (green-blind)
#2C364C
Tritanopia (blue-blind)
#60162E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b104e;
/* rgb */ color: rgb(91, 16, 78);
/* oklch */ color: oklch(33.3% 0.128 336.3);
Tailwind
colors: {
  custom: {
    50: '#8c5880',
    500: '#5b104e',
    950: '#000000',
  },
}
SCSS
$custom: #5b104e;
$custom-light: #8c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#5b104e",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 310.4,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33265,
    "c": 0.12793,
    "h": 336.3
  },
  "luminance": 0.03145
}

Semantic roles & 50–950 ramp

primary
#5B104E
secondary
#339444
accent
#ED5A3B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B104E

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

Preview Lab → · Contrast checker → · Palette generator →

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