#5B177B#5B177B

#5B177B is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.160 H 311.9°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#5B177B
RGBrgb(91, 23, 123)
HSLhsl(281, 68%, 29%)
HSVhsv(281, 81%, 48%)
CMYKcmyk(26%, 81.3%, 0%, 51.8%)
CIE-LABlab(24.54, 46.17, -42.12)
CIE-LCHlch(24.54, 62.50, 317.62°)
OKLaboklab(37.03% 0.1069 -0.1193)
OKLCHoklch(37.03% 0.16 311.9)
XYZxyz(8.1953, 4.2672, 19.1270)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B177B #377B17
analogous
#29177B #5B177B #7B1769
triadic
#5B177B #7B5B17 #177B5B
tetradic
#5B177B #7B2917 #377B17 #17697B
square
#5B177B #7B2917 #377B17 #17697B
split-complementary
#5B177B #697B17 #177B29
monochromatic
#13051A #350D47 #5B177B #8121AF #A433D9

Accessibility & contrast

On white

11.33
#5B177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5B177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B177B
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B177B#FFFFFF#000000##FFFFFF
##5B177B1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#023B79
Tritanopia (blue-blind)
#573049
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b177b;
/* rgb */ color: rgb(91, 23, 123);
/* oklch */ color: oklch(37.0% 0.160 311.9);
Tailwind
colors: {
  custom: {
    50: '#8d5da2',
    500: '#5b177b',
    950: '#000000',
  },
}
SCSS
$custom: #5b177b;
$custom-light: #8d5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b177b",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 280.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37027,
    "c": 0.16019,
    "h": 311.9
  },
  "luminance": 0.04267
}

Semantic roles & 50–950 ramp

primary
#5B177B
secondary
#62B03E
accent
#EB3C74
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B177B

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

Preview Lab → · Contrast checker → · Palette generator →

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