#5B176B#5B176B

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

Color values

HEX#5B176B
RGBrgb(91, 23, 107)
HSLhsl(289, 65%, 25%)
HSVhsv(289, 79%, 42%)
CMYKcmyk(15%, 78.5%, 0%, 58%)
CIE-LABlab(23.33, 42.74, -33.79)
CIE-LCHlch(23.33, 54.48, 321.67°)
OKLaboklab(35.8% 0.1096 -0.0948)
OKLCHoklch(35.8% 0.145 319.1)
XYZxyz(7.2743, 3.8988, 14.2765)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B176B #276B17
analogous
#31176B #5B176B #6B1751
triadic
#5B176B #6B5B17 #176B5B
tetradic
#5B176B #6B3117 #276B17 #17516B
square
#5B176B #6B3117 #276B17 #17516B
split-complementary
#5B176B #516B17 #176B31
monochromatic
#150519 #300C39 #5B176B #86229D #B12DD0

Accessibility & contrast

On white

11.80
#5B176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B176B
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B176B#FFFFFF#000000##FFFFFF
##5B176B1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#1D3A69
Tritanopia (blue-blind)
#5B2840
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b176b;
/* rgb */ color: rgb(91, 23, 107);
/* oklch */ color: oklch(35.8% 0.145 319.1);
Tailwind
colors: {
  custom: {
    50: '#8d5c96',
    500: '#5b176b',
    950: '#000000',
  },
}
SCSS
$custom: #5b176b;
$custom-light: #8d5c96;
$custom-dark: #000000;
JSON
{
  "hex": "#5b176b",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 288.571,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35799,
    "c": 0.14494,
    "h": 319.1
  },
  "luminance": 0.03898
}

Semantic roles & 50–950 ramp

primary
#5B176B
secondary
#50A13D
accent
#E84060
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B176B

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

Preview Lab → · Contrast checker → · Palette generator →

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