#5B177A#5B177A

#5B177A is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.159 H 312.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#5B177A
RGBrgb(91, 23, 122)
HSLhsl(281, 68%, 28%)
HSVhsv(281, 81%, 48%)
CMYKcmyk(25.4%, 81.1%, 0%, 52.2%)
CIE-LABlab(24.46, 45.95, -41.61)
CIE-LCHlch(24.46, 61.99, 317.83°)
OKLaboklab(36.95% 0.1071 -0.1178)
OKLCHoklch(36.95% 0.159 312.3)
XYZxyz(8.1330, 4.2423, 18.7990)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B177A #367A17
analogous
#29177A #5B177A #7A1767
triadic
#5B177A #7A5B17 #177A5B
tetradic
#5B177A #7A2917 #367A17 #17677A
square
#5B177A #7A2917 #367A17 #17677A
split-complementary
#5B177A #677A17 #177A29
monochromatic
#13051A #350D47 #5B177A #8121AD #A533D9

Accessibility & contrast

On white

11.36
#5B177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B177A
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B177A#FFFFFF#000000##FFFFFF
##5B177A1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#053B78
Tritanopia (blue-blind)
#572F48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b177a;
/* rgb */ color: rgb(91, 23, 122);
/* oklch */ color: oklch(36.9% 0.159 312.3);
Tailwind
colors: {
  custom: {
    50: '#8d5da1',
    500: '#5b177a',
    950: '#000000',
  },
}
SCSS
$custom: #5b177a;
$custom-light: #8d5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b177a",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 281.212,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36947,
    "c": 0.15922,
    "h": 312.3
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

primary
#5B177A
secondary
#61AF3E
accent
#EB3D73
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B177A

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

Preview Lab → · Contrast checker → · Palette generator →

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