#5B1165#5B1165

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

Color values

HEX#5B1165
RGBrgb(91, 17, 101)
HSLhsl(293, 71%, 23%)
HSVhsv(293, 83%, 40%)
CMYKcmyk(9.9%, 83.2%, 0%, 60.4%)
CIE-LABlab(22.18, 43.65, -31.73)
CIE-LCHlch(22.18, 53.97, 323.99°)
OKLaboklab(34.85% 0.1159 -0.0888)
OKLCHoklch(34.85% 0.146 322.5)
XYZxyz(6.8636, 3.5650, 12.6360)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1165 #1B6511
analogous
#311165 #5B1165 #651145
triadic
#5B1165 #655B11 #11655B
tetradic
#5B1165 #653111 #1B6511 #114565
square
#5B1165 #653111 #1B6511 #114565
split-complementary
#5B1165 #456511 #116531
monochromatic
#18041A #2C0831 #5B1165 #8A1A99 #B923CE

Accessibility & contrast

On white

12.26
#5B1165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1165
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1165#FFFFFF#000000##FFFFFF
##5B11651.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003067
Deuteranopia (green-blind)
#1F3863
Tritanopia (blue-blind)
#5C223B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1165;
/* rgb */ color: rgb(91, 17, 101);
/* oklch */ color: oklch(34.8% 0.146 322.5);
Tailwind
colors: {
  custom: {
    50: '#8d5a91',
    500: '#5b1165',
    950: '#000000',
  },
}
SCSS
$custom: #5b1165;
$custom-light: #8d5a91;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1165",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 292.857,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34845,
    "c": 0.14599,
    "h": 322.5
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#5B1165
secondary
#419D35
accent
#EE3A4F
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1165

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

Preview Lab → · Contrast checker → · Palette generator →

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