#5B114A#5B114A

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

Color values

HEX#5B114A
RGBrgb(91, 17, 74)
HSLhsl(314, 69%, 21%)
HSVhsv(314, 81%, 36%)
CMYKcmyk(0%, 81.3%, 18.7%, 64.3%)
CIE-LABlab(20.52, 38.89, -16.30)
CIE-LCHlch(20.52, 42.16, 337.26°)
OKLaboklab(33.12% 0.1157 -0.0441)
OKLCHoklch(33.12% 0.124 339.1)
XYZxyz(5.7510, 3.1200, 6.7766)
Luminance0.0312 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B114A #115B22
analogous
#47115B #5B114A #5B1125
triadic
#5B114A #4A5B11 #114A5B
tetradic
#5B114A #5B4711 #115B22 #11255B
square
#5B114A #5B4711 #115B22 #11255B
split-complementary
#5B114A #255B11 #115B47
monochromatic
#1A0515 #270720 #5B114A #8F1B74 #C2249E

Accessibility & contrast

On white

12.93
#5B114A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B114A
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B114A#FFFFFF#000000##FFFFFF
##5B114A1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162A4C
Deuteranopia (green-blind)
#2E3648
Tritanopia (blue-blind)
#61142C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b114a;
/* rgb */ color: rgb(91, 17, 74);
/* oklch */ color: oklch(33.1% 0.124 339.1);
Tailwind
colors: {
  custom: {
    50: '#8c587c',
    500: '#5b114a',
    950: '#000000',
  },
}
SCSS
$custom: #5b114a;
$custom-light: #8c587c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b114a",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 74
  },
  "hsl": {
    "h": 313.784,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33124,
    "c": 0.12378,
    "h": 339.1
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#5B114A
secondary
#34944A
accent
#EB653C
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B114A

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

Preview Lab → · Contrast checker → · Palette generator →

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