#5B186D#5B186D

#5B186D is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.0% C 0.146 H 318.1°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#5B186D
RGBrgb(91, 24, 109)
HSLhsl(287, 64%, 26%)
HSVhsv(287, 78%, 43%)
CMYKcmyk(16.5%, 78%, 0%, 57.3%)
CIE-LABlab(23.61, 42.77, -34.64)
CIE-LCHlch(23.61, 55.04, 321.00°)
OKLaboklab(36.04% 0.1083 -0.0974)
OKLCHoklch(36.04% 0.146 318.1)
XYZxyz(7.4009, 3.9819, 14.8438)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B186D #2A6D18
analogous
#30186D #5B186D #6D1854
triadic
#5B186D #6D5B18 #186D5B
tetradic
#5B186D #6D3018 #2A6D18 #18546D
square
#5B186D #6D3018 #2A6D18 #18546D
split-complementary
#5B186D #546D18 #186D30
monochromatic
#150619 #310D3B #5B186D #85239F #AF2ED1

Accessibility & contrast

On white

11.69
#5B186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5B186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B186D
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B186D#FFFFFF#000000##FFFFFF
##5B186D1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#1C3A6B
Tritanopia (blue-blind)
#5A2A41
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b186d;
/* rgb */ color: rgb(91, 24, 109);
/* oklch */ color: oklch(36.0% 0.146 318.1);
Tailwind
colors: {
  custom: {
    50: '#8d5d97',
    500: '#5b186d',
    950: '#000000',
  },
}
SCSS
$custom: #5b186d;
$custom-light: #8d5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5b186d",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 287.294,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36041,
    "c": 0.14565,
    "h": 318.1
  },
  "luminance": 0.03982
}

Semantic roles & 50–950 ramp

primary
#5B186D
secondary
#53A33E
accent
#E74164
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B186D

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

Preview Lab → · Contrast checker → · Palette generator →

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