#5B1042#5B1042

#5B1042 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.6% C 0.119 H 345.0°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#5B1042
RGBrgb(91, 16, 66)
HSLhsl(320, 70%, 21%)
HSVhsv(320, 82%, 36%)
CMYKcmyk(0%, 82.4%, 27.5%, 64.3%)
CIE-LABlab(20.00, 38.03, -11.60)
CIE-LCHlch(20.00, 39.76, 343.04°)
OKLaboklab(32.62% 0.1153 -0.0309)
OKLCHoklch(32.62% 0.119 345)
XYZxyz(5.4833, 2.9887, 5.4413)
Luminance0.0299 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1042 #105B29
analogous
#4E105B #5B1042 #5B101C
triadic
#5B1042 #425B10 #10425B
tetradic
#5B1042 #5B4E10 #105B29 #101C5B
square
#5B1042 #5B4E10 #105B29 #101C5B
split-complementary
#5B1042 #1C5B10 #105B4E
monochromatic
#1A0513 #27071C #5B1042 #8F1968 #C3228D

Accessibility & contrast

On white

13.14
#5B1042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5B1042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1042
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1042#FFFFFF#000000##FFFFFF
##5B10421.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2843
Deuteranopia (green-blind)
#313540
Tritanopia (blue-blind)
#620F27
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b1042;
/* rgb */ color: rgb(91, 16, 66);
/* oklch */ color: oklch(32.6% 0.119 345.0);
Tailwind
colors: {
  custom: {
    50: '#8d5776',
    500: '#5b1042',
    950: '#000000',
  },
}
SCSS
$custom: #5b1042;
$custom-light: #8d5776;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1042",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 320,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32617,
    "c": 0.11935,
    "h": 345
  },
  "luminance": 0.02988
}

Semantic roles & 50–950 ramp

primary
#5B1042
secondary
#339453
accent
#ED763B
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0D0408
muted
#7D797B

Preview Lab

Preview with #5B1042

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

Preview Lab → · Contrast checker → · Palette generator →

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