#5B1149#5B1149

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

Color values

HEX#5B1149
RGBrgb(91, 17, 73)
HSLhsl(315, 69%, 21%)
HSVhsv(315, 81%, 36%)
CMYKcmyk(0%, 81.3%, 19.8%, 64.3%)
CIE-LABlab(20.47, 38.73, -15.69)
CIE-LCHlch(20.47, 41.79, 337.94°)
OKLaboklab(33.07% 0.1155 -0.0424)
OKLCHoklch(33.07% 0.123 339.8)
XYZxyz(5.7176, 3.1067, 6.6006)
Luminance0.0311 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1149 #115B23
analogous
#48115B #5B1149 #5B1124
triadic
#5B1149 #495B11 #11495B
tetradic
#5B1149 #5B4811 #115B23 #11245B
square
#5B1149 #5B4811 #115B23 #11245B
split-complementary
#5B1149 #245B11 #115B48
monochromatic
#1A0515 #270720 #5B1149 #8F1B72 #C2249C

Accessibility & contrast

On white

12.95
#5B1149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1149
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1149#FFFFFF#000000##FFFFFF
##5B11491.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162A4A
Deuteranopia (green-blind)
#2F3547
Tritanopia (blue-blind)
#61142B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b1149;
/* rgb */ color: rgb(91, 17, 73);
/* oklch */ color: oklch(33.1% 0.123 339.8);
Tailwind
colors: {
  custom: {
    50: '#8c587c',
    500: '#5b1149',
    950: '#000000',
  },
}
SCSS
$custom: #5b1149;
$custom-light: #8c587c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1149",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 73
  },
  "hsl": {
    "h": 314.595,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33069,
    "c": 0.12305,
    "h": 339.8
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#5B1149
secondary
#34944B
accent
#EB673C
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B1149

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

Preview Lab → · Contrast checker → · Palette generator →

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