#5B166E#5B166E

#5B166E is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.149 H 317.7°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#5B166E
RGBrgb(91, 22, 110)
HSLhsl(287, 67%, 26%)
HSVhsv(287, 80%, 43%)
CMYKcmyk(17.3%, 80%, 0%, 56.9%)
CIE-LABlab(23.42, 43.74, -35.59)
CIE-LCHlch(23.42, 56.39, 320.86°)
OKLaboklab(35.93% 0.1102 -0.1001)
OKLCHoklch(35.93% 0.149 317.7)
XYZxyz(7.4154, 3.9241, 15.1157)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B166E #296E16
analogous
#2F166E #5B166E #6E1655
triadic
#5B166E #6E5B16 #166E5B
tetradic
#5B166E #6E2F16 #296E16 #16556E
square
#5B166E #6E2F16 #296E16 #16556E
split-complementary
#5B166E #556E16 #166E2F
monochromatic
#15051A #310C3B #5B166E #8520A1 #AF2AD4

Accessibility & contrast

On white

11.77
#5B166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B166E
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B166E#FFFFFF#000000##FFFFFF
##5B166E1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#193A6C
Tritanopia (blue-blind)
#5A2941
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b166e;
/* rgb */ color: rgb(91, 22, 110);
/* oklch */ color: oklch(35.9% 0.149 317.7);
Tailwind
colors: {
  custom: {
    50: '#8d5c98',
    500: '#5b166e',
    950: '#000000',
  },
}
SCSS
$custom: #5b166e;
$custom-light: #8d5c98;
$custom-dark: #000000;
JSON
{
  "hex": "#5b166e",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 287.045,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35927,
    "c": 0.14889,
    "h": 317.7
  },
  "luminance": 0.03924
}

Semantic roles & 50–950 ramp

primary
#5B166E
secondary
#52A43C
accent
#EA3E63
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B166E

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

Preview Lab → · Contrast checker → · Palette generator →

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