#5B185D#5B185D

#5B185D is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.9% C 0.131 H 326.7°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#5B185D
RGBrgb(91, 24, 93)
HSLhsl(298, 59%, 23%)
HSVhsv(298, 74%, 36%)
CMYKcmyk(2.2%, 74.2%, 0%, 63.5%)
CIE-LABlab(22.54, 39.55, -25.88)
CIE-LCHlch(22.54, 47.27, 326.80°)
OKLaboklab(34.94% 0.1093 -0.0718)
OKLCHoklch(34.94% 0.131 326.7)
XYZxyz(6.6167, 3.6682, 10.7133)
Luminance0.0367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B185D #1A5D18
analogous
#38185D #5B185D #5D183C
triadic
#5B185D #5D5B18 #185D5B
tetradic
#5B185D #5D3818 #1A5D18 #183C5D
square
#5B185D #5D3818 #1A5D18 #183C5D
split-complementary
#5B185D #3C5D18 #185D38
monochromatic
#180618 #2B0B2C #5B185D #8B258E #BA31BE

Accessibility & contrast

On white

12.11
#5B185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5B185D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B185D
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B185D#FFFFFF#000000##FFFFFF
##5B185D1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A305F
Deuteranopia (green-blind)
#28395B
Tritanopia (blue-blind)
#5E2338
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b185d;
/* rgb */ color: rgb(91, 24, 93);
/* oklch */ color: oklch(34.9% 0.131 326.7);
Tailwind
colors: {
  custom: {
    50: '#8c5c8b',
    500: '#5b185d',
    950: '#000000',
  },
}
SCSS
$custom: #5b185d;
$custom-light: #8c5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b185d",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 298.261,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34935,
    "c": 0.13073,
    "h": 326.7
  },
  "luminance": 0.03668
}

Semantic roles & 50–950 ramp

primary
#5B185D
secondary
#40933D
accent
#E2464A
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B185D

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

Preview Lab → · Contrast checker → · Palette generator →

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