#5B185B#5B185B

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

Color values

HEX#5B185B
RGBrgb(91, 24, 91)
HSLhsl(300, 58%, 23%)
HSVhsv(300, 74%, 36%)
CMYKcmyk(0%, 73.6%, 0%, 64.3%)
CIE-LABlab(22.42, 39.17, -24.75)
CIE-LCHlch(22.42, 46.34, 327.72°)
OKLaboklab(34.81% 0.1092 -0.0685)
OKLCHoklch(34.81% 0.129 327.9)
XYZxyz(6.5293, 3.6332, 10.2529)
Luminance0.0363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B185B #185B18
analogous
#39185B #5B185B #5B1839
triadic
#5B185B #5B5B18 #185B5B
tetradic
#5B185B #5B3918 #185B18 #18395B
square
#5B185B #5B3918 #185B18 #18395B
split-complementary
#5B185B #395B18 #185B39
monochromatic
#180618 #2B0B2B #5B185B #8B258B #BC32BC

Accessibility & contrast

On white

12.16
#5B185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B185B
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B185B#FFFFFF#000000##FFFFFF
##5B185B1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D305D
Deuteranopia (green-blind)
#293959
Tritanopia (blue-blind)
#5E2237
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b185b;
/* rgb */ color: rgb(91, 24, 91);
/* oklch */ color: oklch(34.8% 0.129 327.9);
Tailwind
colors: {
  custom: {
    50: '#8c5c8a',
    500: '#5b185b',
    950: '#000000',
  },
}
SCSS
$custom: #5b185b;
$custom-light: #8c5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b185b",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 300,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34807,
    "c": 0.12894,
    "h": 327.9
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#5B185B
secondary
#3D923D
accent
#E14646
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B185B

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

Preview Lab → · Contrast checker → · Palette generator →

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