#5B175A#5B175A

#5B175A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.129 H 328.6°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#5B175A
RGBrgb(91, 23, 90)
HSLhsl(301, 60%, 22%)
HSVhsv(301, 75%, 36%)
CMYKcmyk(0%, 74.7%, 1.1%, 64.3%)
CIE-LABlab(22.22, 39.39, -24.41)
CIE-LCHlch(22.22, 46.34, 328.22°)
OKLaboklab(34.64% 0.1104 -0.0675)
OKLCHoklch(34.64% 0.129 328.6)
XYZxyz(6.4662, 3.5756, 10.0205)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B175A #175B18
analogous
#3A175B #5B175A #5B1738
triadic
#5B175A #5A5B17 #175A5B
tetradic
#5B175A #5B3A17 #175B18 #17385B
square
#5B175A #5B3A17 #175B18 #17385B
split-complementary
#5B175A #385B17 #175B3A
monochromatic
#180618 #2A0B2A #5B175A #8C238A #BD30BB

Accessibility & contrast

On white

12.24
#5B175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5B175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B175A
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B175A#FFFFFF#000000##FFFFFF
##5B175A1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2F5C
Deuteranopia (green-blind)
#293858
Tritanopia (blue-blind)
#5E2136
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b175a;
/* rgb */ color: rgb(91, 23, 90);
/* oklch */ color: oklch(34.6% 0.129 328.6);
Tailwind
colors: {
  custom: {
    50: '#8c5b89',
    500: '#5b175a',
    950: '#000000',
  },
}
SCSS
$custom: #5b175a;
$custom-light: #8c5b89;
$custom-dark: #000000;
JSON
{
  "hex": "#5b175a",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 300.882,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34641,
    "c": 0.12936,
    "h": 328.6
  },
  "luminance": 0.03575
}

Semantic roles & 50–950 ramp

primary
#5B175A
secondary
#3C923D
accent
#E34745
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B175A

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

Preview Lab → · Contrast checker → · Palette generator →

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