#5B176D#5B176D

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

Color values

HEX#5B176D
RGBrgb(91, 23, 109)
HSLhsl(287, 65%, 26%)
HSVhsv(287, 79%, 43%)
CMYKcmyk(16.5%, 78.9%, 0%, 57.3%)
CIE-LABlab(23.48, 43.16, -34.85)
CIE-LCHlch(23.48, 55.47, 321.07°)
OKLaboklab(35.95% 0.1093 -0.098)
OKLCHoklch(35.95% 0.147 318.1)
XYZxyz(7.3807, 3.9414, 14.8370)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B176D #296D17
analogous
#30176D #5B176D #6D1754
triadic
#5B176D #6D5B17 #176D5B
tetradic
#5B176D #6D3017 #296D17 #17546D
square
#5B176D #6D3017 #296D17 #17546D
split-complementary
#5B176D #546D17 #176D30
monochromatic
#150519 #310C3A #5B176D #8522A0 #AF2CD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B176D#FFFFFF#000000##FFFFFF
##5B176D1.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)
#00346F
Deuteranopia (green-blind)
#1B3A6B
Tritanopia (blue-blind)
#5A2941
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b176d;
/* rgb */ color: rgb(91, 23, 109);
/* oklch */ color: oklch(35.9% 0.147 318.1);
Tailwind
colors: {
  custom: {
    50: '#8d5c97',
    500: '#5b176d',
    950: '#000000',
  },
}
SCSS
$custom: #5b176d;
$custom-light: #8d5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5b176d",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 287.442,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35945,
    "c": 0.14682,
    "h": 318.1
  },
  "luminance": 0.03941
}

Semantic roles & 50–950 ramp

primary
#5B176D
secondary
#52A33D
accent
#E84063
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B176D

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

Preview Lab → · Contrast checker → · Palette generator →

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