#5B186B#5B186B

#5B186B is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.144 H 319.0°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#5B186B
RGBrgb(91, 24, 107)
HSLhsl(288, 63%, 26%)
HSVhsv(288, 78%, 42%)
CMYKcmyk(15%, 77.6%, 0%, 58%)
CIE-LABlab(23.47, 42.35, -33.57)
CIE-LCHlch(23.47, 54.04, 321.60°)
OKLaboklab(35.89% 0.1086 -0.0942)
OKLCHoklch(35.89% 0.144 319)
XYZxyz(7.2945, 3.9393, 14.2832)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B186B #286B18
analogous
#31186B #5B186B #6B1851
triadic
#5B186B #6B5B18 #186B5B
tetradic
#5B186B #6B3118 #286B18 #18516B
square
#5B186B #6B3118 #286B18 #18516B
split-complementary
#5B186B #516B18 #186B31
monochromatic
#150619 #300D39 #5B186B #86239D #B02ECF

Accessibility & contrast

On white

11.75
#5B186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5B186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B186B
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B186B#FFFFFF#000000##FFFFFF
##5B186B1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#1E3A69
Tritanopia (blue-blind)
#5B2940
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b186b;
/* rgb */ color: rgb(91, 24, 107);
/* oklch */ color: oklch(35.9% 0.144 319.0);
Tailwind
colors: {
  custom: {
    50: '#8c5d96',
    500: '#5b186b',
    950: '#000000',
  },
}
SCSS
$custom: #5b186b;
$custom-light: #8c5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#5b186b",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 288.434,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35895,
    "c": 0.14375,
    "h": 319
  },
  "luminance": 0.03939
}

Semantic roles & 50–950 ramp

primary
#5B186B
secondary
#51A13E
accent
#E64161
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B186B

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

Preview Lab → · Contrast checker → · Palette generator →

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