#5B165E#5B165E

#5B165E is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.134 H 326.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#5B165E
RGBrgb(91, 22, 94)
HSLhsl(298, 62%, 23%)
HSVhsv(298, 77%, 37%)
CMYKcmyk(3.2%, 76.6%, 0%, 63.1%)
CIE-LABlab(22.33, 40.54, -26.89)
CIE-LCHlch(22.33, 48.64, 326.45°)
OKLaboklab(34.8% 0.1115 -0.0747)
OKLCHoklch(34.8% 0.134 326.2)
XYZxyz(6.6215, 3.6066, 10.9349)
Luminance0.0361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B165E #195E16
analogous
#37165E #5B165E #5E163D
triadic
#5B165E #5E5B16 #165E5B
tetradic
#5B165E #5E3716 #195E16 #163D5E
square
#5B165E #5E3716 #195E16 #163D5E
split-complementary
#5B165E #3D5E16 #165E37
monochromatic
#180619 #2B0A2C #5B165E #8B2290 #BB2DC1

Accessibility & contrast

On white

12.20
#5B165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B165E
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B165E#FFFFFF#000000##FFFFFF
##5B165E1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053060
Deuteranopia (green-blind)
#26385C
Tritanopia (blue-blind)
#5E2238
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b165e;
/* rgb */ color: rgb(91, 22, 94);
/* oklch */ color: oklch(34.8% 0.134 326.2);
Tailwind
colors: {
  custom: {
    50: '#8c5b8c',
    500: '#5b165e',
    950: '#000000',
  },
}
SCSS
$custom: #5b165e;
$custom-light: #8c5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b165e",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 297.5,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.348,
    "c": 0.13419,
    "h": 326.2
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#5B165E
secondary
#3F953B
accent
#E54349
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B165E

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

Preview Lab → · Contrast checker → · Palette generator →

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