#5B186F#5B186F

#5B186F is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.148 H 317.1°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#5B186F
RGBrgb(91, 24, 111)
HSLhsl(286, 64%, 26%)
HSVhsv(286, 78%, 44%)
CMYKcmyk(18%, 78.4%, 0%, 56.5%)
CIE-LABlab(23.76, 43.19, -35.70)
CIE-LCHlch(23.76, 56.04, 320.43°)
OKLaboklab(36.19% 0.1081 -0.1005)
OKLCHoklch(36.19% 0.148 317.1)
XYZxyz(7.5098, 4.0254, 15.4172)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B186F #2C6F18
analogous
#30186F #5B186F #6F1858
triadic
#5B186F #6F5B18 #186F5B
tetradic
#5B186F #6F3018 #2C6F18 #18586F
square
#5B186F #6F3018 #2C6F18 #18586F
split-complementary
#5B186F #586F18 #186F30
monochromatic
#150519 #320D3D #5B186F #8423A1 #AD2FD2

Accessibility & contrast

On white

11.63
#5B186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5B186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B186F
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B186F#FFFFFF#000000##FFFFFF
##5B186F1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#1A3A6D
Tritanopia (blue-blind)
#5A2B42
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b186f;
/* rgb */ color: rgb(91, 24, 111);
/* oklch */ color: oklch(36.2% 0.148 317.1);
Tailwind
colors: {
  custom: {
    50: '#8d5d99',
    500: '#5b186f',
    950: '#000000',
  },
}
SCSS
$custom: #5b186f;
$custom-light: #8d5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#5b186f",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 286.207,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36189,
    "c": 0.14757,
    "h": 317.1
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#5B186F
secondary
#56A53E
accent
#E74067
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5B186F

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

Preview Lab → · Contrast checker → · Palette generator →

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