#5B166A#5B166A

#5B166A is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.145 H 319.7°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#5B166A
RGBrgb(91, 22, 106)
HSLhsl(289, 66%, 25%)
HSVhsv(289, 79%, 42%)
CMYKcmyk(14.2%, 79.2%, 0%, 58.4%)
CIE-LABlab(23.13, 42.91, -33.46)
CIE-LCHlch(23.13, 54.42, 322.05°)
OKLaboklab(35.63% 0.1107 -0.0939)
OKLCHoklch(35.63% 0.145 319.7)
XYZxyz(7.2025, 3.8389, 13.9945)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B166A #256A16
analogous
#31166A #5B166A #6A164F
triadic
#5B166A #6A5B16 #166A5B
tetradic
#5B166A #6A3116 #256A16 #164F6A
square
#5B166A #6A3116 #256A16 #164F6A
split-complementary
#5B166A #4F6A16 #166A31
monochromatic
#160519 #2F0B37 #5B166A #87219D #B22BCF

Accessibility & contrast

On white

11.88
#5B166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5B166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B166A
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B166A#FFFFFF#000000##FFFFFF
##5B166A1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#1D3968
Tritanopia (blue-blind)
#5B273F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b166a;
/* rgb */ color: rgb(91, 22, 106);
/* oklch */ color: oklch(35.6% 0.145 319.7);
Tailwind
colors: {
  custom: {
    50: '#8d5c95',
    500: '#5b166a',
    950: '#000000',
  },
}
SCSS
$custom: #5b166a;
$custom-light: #8d5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5b166a",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 289.286,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35632,
    "c": 0.14515,
    "h": 319.7
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#5B166A
secondary
#4DA03B
accent
#E93F5D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B166A

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

Preview Lab → · Contrast checker → · Palette generator →

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