#5B165F#5B165F

#5B165F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.135 H 325.6°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#5B165F
RGBrgb(91, 22, 95)
HSLhsl(297, 62%, 23%)
HSVhsv(297, 77%, 37%)
CMYKcmyk(4.2%, 76.8%, 0%, 62.7%)
CIE-LABlab(22.39, 40.73, -27.44)
CIE-LCHlch(22.39, 49.11, 326.03°)
OKLaboklab(34.87% 0.1115 -0.0763)
OKLCHoklch(34.87% 0.135 325.6)
XYZxyz(6.6667, 3.6246, 11.1727)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B165F #1A5F16
analogous
#36165F #5B165F #5F163E
triadic
#5B165F #5F5B16 #165F5B
tetradic
#5B165F #5F3616 #1A5F16 #163E5F
square
#5B165F #5F3616 #1A5F16 #163E5F
split-complementary
#5B165F #3E5F16 #165F36
monochromatic
#180619 #2B0A2D #5B165F #8B2291 #BA2DC2

Accessibility & contrast

On white

12.18
#5B165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5B165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B165F
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B165F#FFFFFF#000000##FFFFFF
##5B165F1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033061
Deuteranopia (green-blind)
#26385D
Tritanopia (blue-blind)
#5D2239
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b165f;
/* rgb */ color: rgb(91, 22, 95);
/* oklch */ color: oklch(34.9% 0.135 325.6);
Tailwind
colors: {
  custom: {
    50: '#8c5b8d',
    500: '#5b165f',
    950: '#000000',
  },
}
SCSS
$custom: #5b165f;
$custom-light: #8c5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b165f",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 296.712,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34866,
    "c": 0.13509,
    "h": 325.6
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#5B165F
secondary
#40963B
accent
#E5424B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B165F

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

Preview Lab → · Contrast checker → · Palette generator →

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