#5B176A#5B176A

#5B176A is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.7% C 0.144 H 319.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#5B176A
RGBrgb(91, 23, 106)
HSLhsl(289, 64%, 25%)
HSVhsv(289, 78%, 42%)
CMYKcmyk(14.2%, 78.3%, 0%, 58.4%)
CIE-LABlab(23.26, 42.54, -33.25)
CIE-LCHlch(23.26, 53.99, 321.98°)
OKLaboklab(35.73% 0.1097 -0.0933)
OKLCHoklch(35.73% 0.144 319.6)
XYZxyz(7.2220, 3.8779, 14.0010)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B176A #266A17
analogous
#32176A #5B176A #6A174F
triadic
#5B176A #6A5B17 #176A5B
tetradic
#5B176A #6A3217 #266A17 #174F6A
square
#5B176A #6A3217 #266A17 #174F6A
split-complementary
#5B176A #4F6A17 #176A32
monochromatic
#160519 #300C38 #5B176A #86229C #B12DCF

Accessibility & contrast

On white

11.83
#5B176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B176A
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B176A#FFFFFF#000000##FFFFFF
##5B176A1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b176a;
/* rgb */ color: rgb(91, 23, 106);
/* oklch */ color: oklch(35.7% 0.144 319.6);
Tailwind
colors: {
  custom: {
    50: '#8d5c95',
    500: '#5b176a',
    950: '#000000',
  },
}
SCSS
$custom: #5b176a;
$custom-light: #8d5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5b176a",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 289.157,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35726,
    "c": 0.144,
    "h": 319.6
  },
  "luminance": 0.03878
}

Semantic roles & 50–950 ramp

primary
#5B176A
secondary
#4FA03D
accent
#E7405F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B176A

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

Preview Lab → · Contrast checker → · Palette generator →

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