#5B1840#5B1840

#5B1840 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.3% C 0.108 H 347.8°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#5B1840
RGBrgb(91, 24, 64)
HSLhsl(324, 58%, 23%)
HSVhsv(324, 74%, 36%)
CMYKcmyk(0%, 73.6%, 29.7%, 64.3%)
CIE-LABlab(21.01, 34.64, -8.67)
CIE-LCHlch(21.01, 35.71, 345.95°)
OKLaboklab(33.33% 0.1052 -0.0228)
OKLCHoklch(33.33% 0.108 347.8)
XYZxyz(5.5667, 3.2482, 5.1833)
Luminance0.0325 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1840 #185B33
analogous
#54185B #5B1840 #5B181F
triadic
#5B1840 #405B18 #18405B
tetradic
#5B1840 #5B5418 #185B33 #181F5B
square
#5B1840 #5B5418 #185B33 #181F5B
split-complementary
#5B1840 #1F5B18 #185B54
monochromatic
#180611 #2B0B1E #5B1840 #8B2562 #BC3284

Accessibility & contrast

On white

12.73
#5B1840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5B1840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1840
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1840#FFFFFF#000000##FFFFFF
##5B18401.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212B41
Deuteranopia (green-blind)
#34373E
Tritanopia (blue-blind)
#621629
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b1840;
/* rgb */ color: rgb(91, 24, 64);
/* oklch */ color: oklch(33.3% 0.108 347.8);
Tailwind
colors: {
  custom: {
    50: '#8c5b74',
    500: '#5b1840',
    950: '#000000',
  },
}
SCSS
$custom: #5b1840;
$custom-light: #8c5b74;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1840",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 64
  },
  "hsl": {
    "h": 324.179,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33326,
    "c": 0.10762,
    "h": 347.8
  },
  "luminance": 0.03248
}

Semantic roles & 50–950 ramp

primary
#5B1840
secondary
#3D925F
accent
#E18546
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5B1840

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

Preview Lab → · Contrast checker → · Palette generator →

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