#5B1B59#5B1B59

#5B1B59 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.123 H 329.1°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#5B1B59
RGBrgb(91, 27, 89)
HSLhsl(302, 54%, 23%)
HSVhsv(302, 70%, 36%)
CMYKcmyk(0%, 70.3%, 2.2%, 64.3%)
CIE-LABlab(22.76, 37.51, -22.89)
CIE-LCHlch(22.76, 43.94, 328.61°)
OKLaboklab(35.01% 0.1055 -0.0631)
OKLCHoklch(35.01% 0.123 329.1)
XYZxyz(6.5094, 3.7297, 9.8263)
Luminance0.0373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1B59 #1B5B1D
analogous
#3D1B5B #5B1B59 #5B1B39
triadic
#5B1B59 #595B1B #1B595B
tetradic
#5B1B59 #5B3D1B #1B5B1D #1B395B
square
#5B1B59 #5B3D1B #1B5B1D #1B395B
split-complementary
#5B1B59 #395B1B #1B5B3D
monochromatic
#180717 #2C0D2B #5B1B59 #8A2987 #B937B5

Accessibility & contrast

On white

12.03
#5B1B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1B59
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1B59#FFFFFF#000000##FFFFFF
##5B1B591.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14315B
Deuteranopia (green-blind)
#2C3957
Tritanopia (blue-blind)
#5E2337
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b1b59;
/* rgb */ color: rgb(91, 27, 89);
/* oklch */ color: oklch(35.0% 0.123 329.1);
Tailwind
colors: {
  custom: {
    50: '#8c5d88',
    500: '#5b1b59',
    950: '#000000',
  },
}
SCSS
$custom: #5b1b59;
$custom-light: #8c5d88;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1b59",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 301.875,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35012,
    "c": 0.12294,
    "h": 329.1
  },
  "luminance": 0.03729
}

Semantic roles & 50–950 ramp

primary
#5B1B59
secondary
#419144
accent
#DE4F4A
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1B59

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

Preview Lab → · Contrast checker → · Palette generator →

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