#5B1168#5B1168

#5B1168 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.1% C 0.149 H 321.0°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#5B1168
RGBrgb(91, 17, 104)
HSLhsl(291, 72%, 24%)
HSVhsv(291, 84%, 41%)
CMYKcmyk(12.5%, 83.7%, 0%, 59.2%)
CIE-LABlab(22.39, 44.24, -33.35)
CIE-LCHlch(22.39, 55.40, 322.99°)
OKLaboklab(35.06% 0.1155 -0.0935)
OKLCHoklch(35.06% 0.149 321)
XYZxyz(7.0132, 3.6249, 13.4243)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1168 #1E6811
analogous
#2F1168 #5B1168 #681149
triadic
#5B1168 #685B11 #11685B
tetradic
#5B1168 #682F11 #1E6811 #114968
square
#5B1168 #682F11 #1E6811 #114968
split-complementary
#5B1168 #496811 #11682F
monochromatic
#17041A #2D0833 #5B1168 #891A9D #B722D1

Accessibility & contrast

On white

12.17
#5B1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5B1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1168
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1168#FFFFFF#000000##FFFFFF
##5B11681.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#1C3866
Tritanopia (blue-blind)
#5C243D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b1168;
/* rgb */ color: rgb(91, 17, 104);
/* oklch */ color: oklch(35.1% 0.149 321.0);
Tailwind
colors: {
  custom: {
    50: '#8d5a94',
    500: '#5b1168',
    950: '#000000',
  },
}
SCSS
$custom: #5b1168;
$custom-light: #8d5a94;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1168",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 291.034,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.35063,
    "c": 0.14864,
    "h": 321
  },
  "luminance": 0.03625
}

Semantic roles & 50–950 ramp

primary
#5B1168
secondary
#45A035
accent
#EF3954
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5B1168

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

Preview Lab → · Contrast checker → · Palette generator →

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