#5B1F4E#5B1F4E

#5B1F4E is a dark, moderate pink. Relative luminance 0.038; OKLCH L 34.9% C 0.107 H 337.1°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#5B1F4E
RGBrgb(91, 31, 78)
HSLhsl(313, 49%, 24%)
HSVhsv(313, 66%, 36%)
CMYKcmyk(0%, 65.9%, 14.3%, 64.3%)
CIE-LABlab(22.84, 33.62, -15.40)
CIE-LCHlch(22.84, 36.98, 335.40°)
OKLaboklab(34.88% 0.0986 -0.0417)
OKLCHoklch(34.88% 0.107 337.1)
XYZxyz(6.1796, 3.7547, 7.6055)
Luminance0.0375 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1F4E #1F5B2C
analogous
#4A1F5B #5B1F4E #5B1F30
triadic
#5B1F4E #4E5B1F #1F4E5B
tetradic
#5B1F4E #5B4A1F #1F5B2C #1F305B
square
#5B1F4E #5B4A1F #1F5B2C #1F305B
split-complementary
#5B1F4E #305B1F #1F5B4A
monochromatic
#170814 #2D0F27 #5B1F4E #892F75 #B63E9C

Accessibility & contrast

On white

11.99
#5B1F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5B1F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1F4E
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1F4E#FFFFFF#000000##FFFFFF
##5B1F4E1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20314F
Deuteranopia (green-blind)
#333A4C
Tritanopia (blue-blind)
#602233
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b1f4e;
/* rgb */ color: rgb(91, 31, 78);
/* oklch */ color: oklch(34.9% 0.107 337.1);
Tailwind
colors: {
  custom: {
    50: '#8c5f7f',
    500: '#5b1f4e',
    950: '#000000',
  },
}
SCSS
$custom: #5b1f4e;
$custom-light: #8c5f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1f4e",
  "rgb": {
    "r": 91,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 313,
    "s": 49.18,
    "l": 23.922
  },
  "oklch": {
    "l": 0.34882,
    "c": 0.10704,
    "h": 337.1
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#5B1F4E
secondary
#469056
accent
#D96D4F
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C050A
muted
#7D797C

Preview Lab

Preview with #5B1F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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