#5B1147#5B1147

#5B1147 is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.0% C 0.122 H 341.3°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#5B1147
RGBrgb(91, 17, 71)
HSLhsl(316, 69%, 21%)
HSVhsv(316, 81%, 36%)
CMYKcmyk(0%, 81.3%, 22%, 64.3%)
CIE-LABlab(20.36, 38.42, -14.48)
CIE-LCHlch(20.36, 41.06, 339.35°)
OKLaboklab(32.96% 0.1152 -0.039)
OKLCHoklch(32.96% 0.122 341.3)
XYZxyz(5.6523, 3.0806, 6.2569)
Luminance0.0308 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1147 #115B25
analogous
#4A115B #5B1147 #5B1122
triadic
#5B1147 #475B11 #11475B
tetradic
#5B1147 #5B4A11 #115B25 #11225B
square
#5B1147 #5B4A11 #115B25 #11225B
split-complementary
#5B1147 #225B11 #115B4A
monochromatic
#1A0514 #27071F #5B1147 #8F1B6F #C22497

Accessibility & contrast

On white

13.00
#5B1147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5B1147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1147
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1147#FFFFFF#000000##FFFFFF
##5B11471.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182948
Deuteranopia (green-blind)
#2F3545
Tritanopia (blue-blind)
#61132A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b1147;
/* rgb */ color: rgb(91, 17, 71);
/* oklch */ color: oklch(33.0% 0.122 341.3);
Tailwind
colors: {
  custom: {
    50: '#8c587a',
    500: '#5b1147',
    950: '#000000',
  },
}
SCSS
$custom: #5b1147;
$custom-light: #8c587a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1147",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 316.216,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32962,
    "c": 0.12161,
    "h": 341.3
  },
  "luminance": 0.0308
}

Semantic roles & 50–950 ramp

primary
#5B1147
secondary
#34944E
accent
#EB6C3C
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B1147

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

Preview Lab → · Contrast checker → · Palette generator →

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