#5B165C#5B165C

#5B165C is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.132 H 327.4°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#5B165C
RGBrgb(91, 22, 92)
HSLhsl(299, 61%, 22%)
HSVhsv(299, 76%, 36%)
CMYKcmyk(1.1%, 76.1%, 0%, 63.9%)
CIE-LABlab(22.20, 40.16, -25.76)
CIE-LCHlch(22.20, 47.71, 327.32°)
OKLaboklab(34.67% 0.1115 -0.0714)
OKLCHoklch(34.67% 0.132 327.4)
XYZxyz(6.5330, 3.5711, 10.4683)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B165C #175C16
analogous
#38165C #5B165C #5C163A
triadic
#5B165C #5C5B16 #165C5B
tetradic
#5B165C #5C3816 #175C16 #163A5C
square
#5B165C #5C3816 #175C16 #163A5C
split-complementary
#5B165C #3A5C16 #165C38
monochromatic
#180619 #2A0A2B #5B165C #8C228D #BD2EBF

Accessibility & contrast

On white

12.25
#5B165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B165C
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B165C#FFFFFF#000000##FFFFFF
##5B165C1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082F5E
Deuteranopia (green-blind)
#28385A
Tritanopia (blue-blind)
#5E2137
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b165c;
/* rgb */ color: rgb(91, 22, 92);
/* oklch */ color: oklch(34.7% 0.132 327.4);
Tailwind
colors: {
  custom: {
    50: '#8c5b8a',
    500: '#5b165c',
    950: '#000000',
  },
}
SCSS
$custom: #5b165c;
$custom-light: #8c5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b165c",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 299.143,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34669,
    "c": 0.13241,
    "h": 327.4
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#5B165C
secondary
#3C933B
accent
#E54346
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B165C

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

Preview Lab → · Contrast checker → · Palette generator →

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