#5B185A#5B185A

#5B185A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.128 H 328.5°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#5B185A
RGBrgb(91, 24, 90)
HSLhsl(301, 58%, 23%)
HSVhsv(301, 74%, 36%)
CMYKcmyk(0%, 73.6%, 1.1%, 64.3%)
CIE-LABlab(22.36, 38.98, -24.18)
CIE-LCHlch(22.36, 45.87, 328.19°)
OKLaboklab(34.74% 0.1092 -0.0668)
OKLCHoklch(34.74% 0.128 328.5)
XYZxyz(6.4864, 3.6161, 10.0272)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B185A #185B19
analogous
#3B185B #5B185A #5B1838
triadic
#5B185A #5A5B18 #185A5B
tetradic
#5B185A #5B3B18 #185B19 #18385B
square
#5B185A #5B3B18 #185B19 #18385B
split-complementary
#5B185A #385B18 #185B3B
monochromatic
#180618 #2B0B2A #5B185A #8B258A #BC32BA

Accessibility & contrast

On white

12.19
#5B185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B185A
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B185A#FFFFFF#000000##FFFFFF
##5B185A1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F305C
Deuteranopia (green-blind)
#2A3958
Tritanopia (blue-blind)
#5E2137
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b185a;
/* rgb */ color: rgb(91, 24, 90);
/* oklch */ color: oklch(34.7% 0.128 328.5);
Tailwind
colors: {
  custom: {
    50: '#8c5c89',
    500: '#5b185a',
    950: '#000000',
  },
}
SCSS
$custom: #5b185a;
$custom-light: #8c5c89;
$custom-dark: #000000;
JSON
{
  "hex": "#5b185a",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 300.896,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34744,
    "c": 0.12804,
    "h": 328.5
  },
  "luminance": 0.03616
}

Semantic roles & 50–950 ramp

primary
#5B185A
secondary
#3D923E
accent
#E14946
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B185A

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

Preview Lab → · Contrast checker → · Palette generator →

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