#5B1040#5B1040

#5B1040 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.5% C 0.118 H 346.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#5B1040
RGBrgb(91, 16, 64)
HSLhsl(322, 70%, 21%)
HSVhsv(322, 82%, 36%)
CMYKcmyk(0%, 82.4%, 29.7%, 64.3%)
CIE-LABlab(19.91, 37.75, -10.36)
CIE-LCHlch(19.91, 39.15, 344.66°)
OKLaboklab(32.52% 0.1148 -0.0274)
OKLCHoklch(32.52% 0.118 346.6)
XYZxyz(5.4253, 2.9655, 5.1362)
Luminance0.0296 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1040 #105B2B
analogous
#50105B #5B1040 #5B101A
triadic
#5B1040 #405B10 #10405B
tetradic
#5B1040 #5B5010 #105B2B #101A5B
square
#5B1040 #5B5010 #105B2B #101A5B
split-complementary
#5B1040 #1A5B10 #105B50
monochromatic
#1A0512 #27071B #5B1040 #8F1965 #C32289

Accessibility & contrast

On white

13.18
#5B1040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5B1040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1040
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1040#FFFFFF#000000##FFFFFF
##5B10401.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2841
Deuteranopia (green-blind)
#31353E
Tritanopia (blue-blind)
#620D26
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b1040;
/* rgb */ color: rgb(91, 16, 64);
/* oklch */ color: oklch(32.5% 0.118 346.6);
Tailwind
colors: {
  custom: {
    50: '#8d5774',
    500: '#5b1040',
    950: '#000000',
  },
}
SCSS
$custom: #5b1040;
$custom-light: #8d5774;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1040",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 321.6,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32519,
    "c": 0.11807,
    "h": 346.6
  },
  "luminance": 0.02965
}

Semantic roles & 50–950 ramp

primary
#5B1040
secondary
#339456
accent
#ED7B3B
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0D0408
muted
#7D797B

Preview Lab

Preview with #5B1040

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

Preview Lab → · Contrast checker → · Palette generator →

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