#5B166C#5B166C

#5B166C is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.147 H 318.7°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#5B166C
RGBrgb(91, 22, 108)
HSLhsl(288, 66%, 25%)
HSVhsv(288, 80%, 42%)
CMYKcmyk(15.7%, 79.6%, 0%, 57.6%)
CIE-LABlab(23.27, 43.33, -34.53)
CIE-LCHlch(23.27, 55.40, 321.44°)
OKLaboklab(35.78% 0.1105 -0.097)
OKLCHoklch(35.78% 0.147 318.7)
XYZxyz(7.3077, 3.8810, 14.5486)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B166C #276C16
analogous
#30166C #5B166C #6C1652
triadic
#5B166C #6C5B16 #166C5B
tetradic
#5B166C #6C3016 #276C16 #16526C
square
#5B166C #6C3016 #276C16 #16526C
split-complementary
#5B166C #526C16 #166C30
monochromatic
#150519 #300C39 #5B166C #86209F #B12BD2

Accessibility & contrast

On white

11.82
#5B166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5B166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B166C
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B166C#FFFFFF#000000##FFFFFF
##5B166C1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#1B3A6A
Tritanopia (blue-blind)
#5B2840
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b166c;
/* rgb */ color: rgb(91, 22, 108);
/* oklch */ color: oklch(35.8% 0.147 318.7);
Tailwind
colors: {
  custom: {
    50: '#8d5c97',
    500: '#5b166c',
    950: '#000000',
  },
}
SCSS
$custom: #5b166c;
$custom-light: #8d5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5b166c",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 288.14,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35779,
    "c": 0.14702,
    "h": 318.7
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#5B166C
secondary
#50A23C
accent
#E93F60
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B166C

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

Preview Lab → · Contrast checker → · Palette generator →

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