#5D165B#5D165B

#5D165B is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.9% C 0.133 H 329.2°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#5D165B
RGBrgb(93, 22, 91)
HSLhsl(302, 62%, 23%)
HSVhsv(302, 76%, 36%)
CMYKcmyk(0%, 76.3%, 2.2%, 63.5%)
CIE-LABlab(22.50, 40.48, -24.59)
CIE-LCHlch(22.50, 47.36, 328.72°)
OKLaboklab(34.94% 0.1139 -0.068)
OKLCHoklch(34.94% 0.133 329.2)
XYZxyz(6.6894, 3.6568, 10.2490)
Luminance0.0366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D165B #165D18
analogous
#3B165D #5D165B #5D1638
triadic
#5D165B #5B5D16 #165B5D
tetradic
#5D165B #5D3B16 #165D18 #16385D
square
#5D165B #5D3B16 #165D18 #16385D
split-complementary
#5D165B #385D16 #165D3B
monochromatic
#190618 #2C0A2B #5D165B #8E228B #C02DBC

Accessibility & contrast

On white

12.13
#5D165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5D165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D165B
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D165B#FFFFFF#000000##FFFFFF
##5D165B1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C305D
Deuteranopia (green-blind)
#2A3959
Tritanopia (blue-blind)
#602037
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5d165b;
/* rgb */ color: rgb(93, 22, 91);
/* oklch */ color: oklch(34.9% 0.133 329.2);
Tailwind
colors: {
  custom: {
    50: '#8e5b8a',
    500: '#5d165b',
    950: '#000000',
  },
}
SCSS
$custom: #5d165b;
$custom-light: #8e5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d165b",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 301.69,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34937,
    "c": 0.13265,
    "h": 329.2
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#5D165B
secondary
#3B943D
accent
#E54843
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5D165B

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

Preview Lab → · Contrast checker → · Palette generator →

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