#5B177D#5B177D

#5B177D is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.162 H 311.0°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#5B177D
RGBrgb(91, 23, 125)
HSLhsl(280, 69%, 29%)
HSVhsv(280, 82%, 49%)
CMYKcmyk(27.2%, 81.6%, 0%, 51%)
CIE-LABlab(24.70, 46.61, -43.13)
CIE-LCHlch(24.70, 63.50, 317.22°)
OKLaboklab(37.19% 0.1064 -0.1223)
OKLCHoklch(37.19% 0.162 311)
XYZxyz(8.3217, 4.3178, 19.7931)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B177D #397D17
analogous
#28177D #5B177D #7D176C
triadic
#5B177D #7D5B17 #177D5B
tetradic
#5B177D #7D2817 #397D17 #176C7D
square
#5B177D #7D2817 #397D17 #176C7D
split-complementary
#5B177D #6C7D17 #177D28
monochromatic
#13051A #350D49 #5B177D #8121B1 #A335DA

Accessibility & contrast

On white

11.27
#5B177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5B177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B177D
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B177D#FFFFFF#000000##FFFFFF
##5B177D1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#56304A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b177d;
/* rgb */ color: rgb(91, 23, 125);
/* oklch */ color: oklch(37.2% 0.162 311.0);
Tailwind
colors: {
  custom: {
    50: '#8e5da3',
    500: '#5b177d',
    950: '#000000',
  },
}
SCSS
$custom: #5b177d;
$custom-light: #8e5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b177d",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 280,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37189,
    "c": 0.16212,
    "h": 311
  },
  "luminance": 0.04318
}

Semantic roles & 50–950 ramp

primary
#5B177D
secondary
#65B23E
accent
#EC3C77
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B177D

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

Preview Lab → · Contrast checker → · Palette generator →

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