#5B186C#5B186C

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

Color values

HEX#5B186C
RGBrgb(91, 24, 108)
HSLhsl(288, 64%, 26%)
HSVhsv(288, 78%, 42%)
CMYKcmyk(15.7%, 77.8%, 0%, 57.6%)
CIE-LABlab(23.54, 42.56, -34.10)
CIE-LCHlch(23.54, 54.54, 321.29°)
OKLaboklab(35.97% 0.1085 -0.0958)
OKLCHoklch(35.97% 0.145 318.5)
XYZxyz(7.3474, 3.9605, 14.5619)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B186C #296C18
analogous
#31186C #5B186C #6C1853
triadic
#5B186C #6C5B18 #186C5B
tetradic
#5B186C #6C3118 #296C18 #18536C
square
#5B186C #6C3118 #296C18 #18536C
split-complementary
#5B186C #536C18 #186C31
monochromatic
#150619 #310D3A #5B186C #85239E #AF2ED0

Accessibility & contrast

On white

11.72
#5B186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B186C
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B186C#FFFFFF#000000##FFFFFF
##5B186C1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#1D3A6A
Tritanopia (blue-blind)
#5B2941
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b186c;
/* rgb */ color: rgb(91, 24, 108);
/* oklch */ color: oklch(36.0% 0.145 318.5);
Tailwind
colors: {
  custom: {
    50: '#8d5d97',
    500: '#5b186c',
    950: '#000000',
  },
}
SCSS
$custom: #5b186c;
$custom-light: #8d5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5b186c",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 287.857,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35968,
    "c": 0.1447,
    "h": 318.5
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#5B186C
secondary
#52A23E
accent
#E74163
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B186C

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

Preview Lab → · Contrast checker → · Palette generator →

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