#5B155A#5B155A

#5B155A is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.132 H 328.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#5B155A
RGBrgb(91, 21, 90)
HSLhsl(301, 63%, 22%)
HSVhsv(301, 77%, 36%)
CMYKcmyk(0%, 76.9%, 1.1%, 64.3%)
CIE-LABlab(21.94, 40.17, -24.84)
CIE-LCHlch(21.94, 47.23, 328.27°)
OKLaboklab(34.44% 0.1126 -0.0687)
OKLCHoklch(34.44% 0.132 328.6)
XYZxyz(6.4279, 3.4991, 10.0077)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B155A #155B16
analogous
#39155B #5B155A #5B1537
triadic
#5B155A #5A5B15 #155A5B
tetradic
#5B155A #5B3915 #155B16 #15375B
square
#5B155A #5B3915 #155B16 #15375B
split-complementary
#5B155A #375B15 #155B39
monochromatic
#190619 #290A29 #5B155A #8D208B #BE2CBC

Accessibility & contrast

On white

12.35
#5B155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5B155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B155A
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B155A#FFFFFF#000000##FFFFFF
##5B155A1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092F5C
Deuteranopia (green-blind)
#283858
Tritanopia (blue-blind)
#5E1F36
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b155a;
/* rgb */ color: rgb(91, 21, 90);
/* oklch */ color: oklch(34.4% 0.132 328.6);
Tailwind
colors: {
  custom: {
    50: '#8c5b89',
    500: '#5b155a',
    950: '#000000',
  },
}
SCSS
$custom: #5b155a;
$custom-light: #8c5b89;
$custom-dark: #000000;
JSON
{
  "hex": "#5b155a",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 300.857,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34444,
    "c": 0.13191,
    "h": 328.6
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#5B155A
secondary
#39923B
accent
#E64542
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B155A

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

Preview Lab → · Contrast checker → · Palette generator →

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