#5B1348#5B1348

#5B1348 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.2% C 0.120 H 340.7°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#5B1348
RGBrgb(91, 19, 72)
HSLhsl(316, 65%, 22%)
HSVhsv(316, 79%, 36%)
CMYKcmyk(0%, 79.1%, 20.9%, 64.3%)
CIE-LABlab(20.67, 37.86, -14.70)
CIE-LCHlch(20.67, 40.61, 338.78°)
OKLaboklab(33.2% 0.1132 -0.0396)
OKLCHoklch(33.2% 0.12 340.7)
XYZxyz(5.7171, 3.1583, 6.4382)
Luminance0.0316 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1348 #135B26
analogous
#4A135B #5B1348 #5B1324
triadic
#5B1348 #485B13 #13485B
tetradic
#5B1348 #5B4A13 #135B26 #13245B
square
#5B1348 #5B4A13 #135B26 #13245B
split-complementary
#5B1348 #245B13 #135B4A
monochromatic
#190514 #280820 #5B1348 #8E1E70 #C02898

Accessibility & contrast

On white

12.87
#5B1348 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1348
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1348#FFFFFF#000000##FFFFFF
##5B13481.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192A49
Deuteranopia (green-blind)
#303646
Tritanopia (blue-blind)
#61152C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b1348;
/* rgb */ color: rgb(91, 19, 72);
/* oklch */ color: oklch(33.2% 0.120 340.7);
Tailwind
colors: {
  custom: {
    50: '#8c597b',
    500: '#5b1348',
    950: '#000000',
  },
}
SCSS
$custom: #5b1348;
$custom-light: #8c597b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1348",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 72
  },
  "hsl": {
    "h": 315.833,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33198,
    "c": 0.1199,
    "h": 340.7
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#5B1348
secondary
#37934F
accent
#E86C3F
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B1348

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

Preview Lab → · Contrast checker → · Palette generator →

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