#5B1146#5B1146

#5B1146 is a dark, vivid pink. Relative luminance 0.031; OKLCH L 32.9% C 0.121 H 342.0°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#5B1146
RGBrgb(91, 17, 70)
HSLhsl(317, 69%, 21%)
HSVhsv(317, 81%, 36%)
CMYKcmyk(0%, 81.3%, 23.1%, 64.3%)
CIE-LABlab(20.31, 38.27, -13.87)
CIE-LCHlch(20.31, 40.71, 340.07°)
OKLaboklab(32.91% 0.115 -0.0373)
OKLCHoklch(32.91% 0.121 342)
XYZxyz(5.6205, 3.0678, 6.0893)
Luminance0.0307 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1146 #115B26
analogous
#4B115B #5B1146 #5B1121
triadic
#5B1146 #465B11 #11465B
tetradic
#5B1146 #5B4B11 #115B26 #11215B
square
#5B1146 #5B4B11 #115B26 #11215B
split-complementary
#5B1146 #215B11 #115B4B
monochromatic
#1A0514 #27071E #5B1146 #8F1B6E #C22495

Accessibility & contrast

On white

13.02
#5B1146 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5B1146 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1146
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1146#FFFFFF#000000##FFFFFF
##5B11461.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182947
Deuteranopia (green-blind)
#303544
Tritanopia (blue-blind)
#61122A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b1146;
/* rgb */ color: rgb(91, 17, 70);
/* oklch */ color: oklch(32.9% 0.121 342.0);
Tailwind
colors: {
  custom: {
    50: '#8c5879',
    500: '#5b1146',
    950: '#000000',
  },
}
SCSS
$custom: #5b1146;
$custom-light: #8c5879;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1146",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 70
  },
  "hsl": {
    "h": 317.027,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32909,
    "c": 0.12091,
    "h": 342
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#5B1146
secondary
#34944F
accent
#EB6E3C
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B1146

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

Preview Lab → · Contrast checker → · Palette generator →

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