#5B114B#5B114B

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

Color values

HEX#5B114B
RGBrgb(91, 17, 75)
HSLhsl(313, 69%, 21%)
HSVhsv(313, 81%, 36%)
CMYKcmyk(0%, 81.3%, 17.6%, 64.3%)
CIE-LABlab(20.57, 39.04, -16.90)
CIE-LCHlch(20.57, 42.54, 336.60°)
OKLaboklab(33.18% 0.1158 -0.0458)
OKLCHoklch(33.18% 0.125 338.4)
XYZxyz(5.7850, 3.1336, 6.9554)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B114B #115B21
analogous
#46115B #5B114B #5B1126
triadic
#5B114B #4B5B11 #114B5B
tetradic
#5B114B #5B4611 #115B21 #11265B
square
#5B114B #5B4611 #115B21 #11265B
split-complementary
#5B114B #265B11 #115B46
monochromatic
#1A0515 #270720 #5B114B #8F1B75 #C224A0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B114B#FFFFFF#000000##FFFFFF
##5B114B1.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)
#152A4D
Deuteranopia (green-blind)
#2E3649
Tritanopia (blue-blind)
#61152D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b114b;
/* rgb */ color: rgb(91, 17, 75);
/* oklch */ color: oklch(33.2% 0.125 338.4);
Tailwind
colors: {
  custom: {
    50: '#8c587d',
    500: '#5b114b',
    950: '#000000',
  },
}
SCSS
$custom: #5b114b;
$custom-light: #8c587d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b114b",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 75
  },
  "hsl": {
    "h": 312.973,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33179,
    "c": 0.12453,
    "h": 338.4
  },
  "luminance": 0.03133
}

Semantic roles & 50–950 ramp

primary
#5B114B
secondary
#349449
accent
#EB623C
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B114B

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

Preview Lab → · Contrast checker → · Palette generator →

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