#5B1164#5B1164

#5B1164 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.8% C 0.145 H 323.1°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#5B1164
RGBrgb(91, 17, 100)
HSLhsl(293, 71%, 23%)
HSVhsv(293, 83%, 39%)
CMYKcmyk(9%, 83%, 0%, 60.8%)
CIE-LABlab(22.11, 43.46, -31.19)
CIE-LCHlch(22.11, 53.49, 324.34°)
OKLaboklab(34.77% 0.116 -0.0872)
OKLCHoklch(34.77% 0.145 323.1)
XYZxyz(6.8149, 3.5456, 12.3795)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1164 #1A6411
analogous
#311164 #5B1164 #641143
triadic
#5B1164 #645B11 #11645B
tetradic
#5B1164 #643111 #1A6411 #114364
square
#5B1164 #643111 #1A6411 #114364
split-complementary
#5B1164 #436411 #116431
monochromatic
#18041A #2B0830 #5B1164 #8B1A98 #BA23CD

Accessibility & contrast

On white

12.29
#5B1164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1164
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1164#FFFFFF#000000##FFFFFF
##5B11641.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003066
Deuteranopia (green-blind)
#203862
Tritanopia (blue-blind)
#5C223B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1164;
/* rgb */ color: rgb(91, 17, 100);
/* oklch */ color: oklch(34.8% 0.145 323.1);
Tailwind
colors: {
  custom: {
    50: '#8d5a91',
    500: '#5b1164',
    950: '#000000',
  },
}
SCSS
$custom: #5b1164;
$custom-light: #8d5a91;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1164",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 293.494,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34773,
    "c": 0.14511,
    "h": 323.1
  },
  "luminance": 0.03545
}

Semantic roles & 50–950 ramp

primary
#5B1164
secondary
#409C35
accent
#EE3A4E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040D
muted
#7D797D

Preview Lab

Preview with #5B1164

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

Preview Lab → · Contrast checker → · Palette generator →

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