#5B166F#5B166F

#5B166F is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.0% C 0.150 H 317.3°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#5B166F
RGBrgb(91, 22, 111)
HSLhsl(287, 67%, 26%)
HSVhsv(287, 80%, 44%)
CMYKcmyk(18%, 80.2%, 0%, 56.5%)
CIE-LABlab(23.49, 43.95, -36.12)
CIE-LCHlch(23.49, 56.89, 320.58°)
OKLaboklab(36% 0.11 -0.1017)
OKLCHoklch(36% 0.15 317.3)
XYZxyz(7.4701, 3.9460, 15.4040)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B166F #2A6F16
analogous
#2E166F #5B166F #6F1656
triadic
#5B166F #6F5B16 #166F5B
tetradic
#5B166F #6F2E16 #2A6F16 #16566F
square
#5B166F #6F2E16 #2A6F16 #16566F
split-complementary
#5B166F #566F16 #166F2E
monochromatic
#15051A #310C3C #5B166F #8520A2 #AF2BD5

Accessibility & contrast

On white

11.74
#5B166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5B166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B166F
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B166F#FFFFFF#000000##FFFFFF
##5B166F1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#183A6D
Tritanopia (blue-blind)
#5A2A42
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b166f;
/* rgb */ color: rgb(91, 22, 111);
/* oklch */ color: oklch(36.0% 0.150 317.3);
Tailwind
colors: {
  custom: {
    50: '#8d5c99',
    500: '#5b166f',
    950: '#000000',
  },
}
SCSS
$custom: #5b166f;
$custom-light: #8d5c99;
$custom-dark: #000000;
JSON
{
  "hex": "#5b166f",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 286.517,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36002,
    "c": 0.14982,
    "h": 317.3
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#5B166F
secondary
#53A53C
accent
#EA3E65
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B166F

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

Preview Lab → · Contrast checker → · Palette generator →

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