#5B165A#5B165A

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

Color values

HEX#5B165A
RGBrgb(91, 22, 90)
HSLhsl(301, 61%, 22%)
HSVhsv(301, 76%, 36%)
CMYKcmyk(0%, 75.8%, 1.1%, 64.3%)
CIE-LABlab(22.08, 39.79, -24.63)
CIE-LCHlch(22.08, 46.79, 328.24°)
OKLaboklab(34.54% 0.1115 -0.0681)
OKLCHoklch(34.54% 0.131 328.6)
XYZxyz(6.4467, 3.5366, 10.0140)
Luminance0.0354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B165A #165B17
analogous
#3A165B #5B165A #5B1637
triadic
#5B165A #5A5B16 #165A5B
tetradic
#5B165A #5B3A16 #165B17 #16375B
square
#5B165A #5B3A16 #165B17 #16375B
split-complementary
#5B165A #375B16 #165B3A
monochromatic
#190618 #2A0A29 #5B165A #8C228B #BE2EBB

Accessibility & contrast

On white

12.30
#5B165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5B165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B165A
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B165A#FFFFFF#000000##FFFFFF
##5B165A1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2F5C
Deuteranopia (green-blind)
#293858
Tritanopia (blue-blind)
#5E2036
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b165a;
/* rgb */ color: rgb(91, 22, 90);
/* oklch */ color: oklch(34.5% 0.131 328.6);
Tailwind
colors: {
  custom: {
    50: '#8c5b89',
    500: '#5b165a',
    950: '#000000',
  },
}
SCSS
$custom: #5b165a;
$custom-light: #8c5b89;
$custom-dark: #000000;
JSON
{
  "hex": "#5b165a",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 300.87,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34541,
    "c": 0.13065,
    "h": 328.6
  },
  "luminance": 0.03536
}

Semantic roles & 50–950 ramp

primary
#5B165A
secondary
#3B923C
accent
#E44644
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B165A

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

Preview Lab → · Contrast checker → · Palette generator →

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