#5B176C#5B176C

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

Color values

HEX#5B176C
RGBrgb(91, 23, 108)
HSLhsl(288, 65%, 26%)
HSVhsv(288, 79%, 42%)
CMYKcmyk(15.7%, 78.7%, 0%, 57.6%)
CIE-LABlab(23.41, 42.95, -34.32)
CIE-LCHlch(23.41, 54.98, 321.37°)
OKLaboklab(35.87% 0.1095 -0.0964)
OKLCHoklch(35.87% 0.146 318.6)
XYZxyz(7.3272, 3.9200, 14.5551)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B176C #286C17
analogous
#30176C #5B176C #6C1752
triadic
#5B176C #6C5B17 #176C5B
tetradic
#5B176C #6C3017 #286C17 #17526C
square
#5B176C #6C3017 #286C17 #17526C
split-complementary
#5B176C #526C17 #176C30
monochromatic
#150519 #300C3A #5B176C #86229E #B02CD1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B176C#FFFFFF#000000##FFFFFF
##5B176C1.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)
#00336E
Deuteranopia (green-blind)
#1C3A6A
Tritanopia (blue-blind)
#5B2940
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b176c;
/* rgb */ color: rgb(91, 23, 108);
/* oklch */ color: oklch(35.9% 0.146 318.6);
Tailwind
colors: {
  custom: {
    50: '#8d5c97',
    500: '#5b176c',
    950: '#000000',
  },
}
SCSS
$custom: #5b176c;
$custom-light: #8d5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5b176c",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 288,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35872,
    "c": 0.14588,
    "h": 318.6
  },
  "luminance": 0.0392
}

Semantic roles & 50–950 ramp

primary
#5B176C
secondary
#51A23D
accent
#E84062
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B176C

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

Preview Lab → · Contrast checker → · Palette generator →

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