#5B1145#5B1145

#5B1145 is a dark, vivid pink. Relative luminance 0.031; OKLCH L 32.9% C 0.120 H 342.8°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#5B1145
RGBrgb(91, 17, 69)
HSLhsl(318, 69%, 21%)
HSVhsv(318, 81%, 36%)
CMYKcmyk(0%, 81.3%, 24.2%, 64.3%)
CIE-LABlab(20.26, 38.12, -13.26)
CIE-LCHlch(20.26, 40.37, 340.82°)
OKLaboklab(32.86% 0.1148 -0.0355)
OKLCHoklch(32.86% 0.12 342.8)
XYZxyz(5.5892, 3.0553, 5.9245)
Luminance0.0306 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1145 #115B27
analogous
#4C115B #5B1145 #5B1120
triadic
#5B1145 #455B11 #11455B
tetradic
#5B1145 #5B4C11 #115B27 #11205B
square
#5B1145 #5B4C11 #115B27 #11205B
split-complementary
#5B1145 #205B11 #115B4C
monochromatic
#1A0514 #27071E #5B1145 #8F1B6C #C22493

Accessibility & contrast

On white

13.04
#5B1145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5B1145 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1145
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1145#FFFFFF#000000##FFFFFF
##5B11451.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192946
Deuteranopia (green-blind)
#303543
Tritanopia (blue-blind)
#611129
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b1145;
/* rgb */ color: rgb(91, 17, 69);
/* oklch */ color: oklch(32.9% 0.120 342.8);
Tailwind
colors: {
  custom: {
    50: '#8d5878',
    500: '#5b1145',
    950: '#000000',
  },
}
SCSS
$custom: #5b1145;
$custom-light: #8d5878;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1145",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 69
  },
  "hsl": {
    "h": 317.838,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32857,
    "c": 0.1202,
    "h": 342.8
  },
  "luminance": 0.03055
}

Semantic roles & 50–950 ramp

primary
#5B1145
secondary
#349450
accent
#EB703C
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B1145

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

Preview Lab → · Contrast checker → · Palette generator →

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