#5B2140#5B2140

#5B2140 is a dark, moderate pink. Relative luminance 0.037; OKLCH L 34.5% C 0.093 H 349.9°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#5B2140
RGBrgb(91, 33, 64)
HSLhsl(328, 47%, 24%)
HSVhsv(328, 64%, 36%)
CMYKcmyk(0%, 63.7%, 29.7%, 64.3%)
CIE-LABlab(22.59, 30.32, -6.28)
CIE-LCHlch(22.59, 30.96, 348.30°)
OKLaboklab(34.49% 0.0918 -0.0164)
OKLCHoklch(34.49% 0.093 349.9)
XYZxyz(5.7839, 3.6826, 5.2557)
Luminance0.0368 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2140 #215B3C
analogous
#59215B #5B2140 #5B2123
triadic
#5B2140 #405B21 #21405B
tetradic
#5B2140 #5B5921 #215B3C #21235B
square
#5B2140 #5B5921 #215B3C #21235B
split-complementary
#5B2140 #235B21 #215B59
monochromatic
#160810 #2E1120 #5B2140 #883160 #B5427F

Accessibility & contrast

On white

12.09
#5B2140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5B2140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2140
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2140#FFFFFF#000000##FFFFFF
##5B21401.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283041
Deuteranopia (green-blind)
#383A3F
Tritanopia (blue-blind)
#621F2D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b2140;
/* rgb */ color: rgb(91, 33, 64);
/* oklch */ color: oklch(34.5% 0.093 349.9);
Tailwind
colors: {
  custom: {
    50: '#8c6074',
    500: '#5b2140',
    950: '#000000',
  },
}
SCSS
$custom: #5b2140;
$custom-light: #8c6074;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2140",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 327.931,
    "s": 46.774,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34493,
    "c": 0.09327,
    "h": 349.9
  },
  "luminance": 0.03682
}

Semantic roles & 50–950 ramp

primary
#5B2140
secondary
#498F69
accent
#D68F51
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0508
muted
#7D797B

Preview Lab

Preview with #5B2140

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

Preview Lab → · Contrast checker → · Palette generator →

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