#5B186E#5B186E

#5B186E is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.147 H 317.6°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#5B186E
RGBrgb(91, 24, 110)
HSLhsl(287, 64%, 26%)
HSVhsv(287, 78%, 43%)
CMYKcmyk(17.3%, 78.2%, 0%, 56.9%)
CIE-LABlab(23.68, 42.98, -35.17)
CIE-LCHlch(23.68, 55.54, 320.71°)
OKLaboklab(36.12% 0.1082 -0.0989)
OKLCHoklch(36.12% 0.147 317.6)
XYZxyz(7.4551, 4.0035, 15.1289)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B186E #2B6E18
analogous
#30186E #5B186E #6E1856
triadic
#5B186E #6E5B18 #186E5B
tetradic
#5B186E #6E3018 #2B6E18 #18566E
square
#5B186E #6E3018 #2B6E18 #18566E
split-complementary
#5B186E #566E18 #186E30
monochromatic
#150519 #310D3C #5B186E #8523A0 #AE2FD2

Accessibility & contrast

On white

11.66
#5B186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B186E
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B186E#FFFFFF#000000##FFFFFF
##5B186E1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#1B3A6C
Tritanopia (blue-blind)
#5A2A42
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b186e;
/* rgb */ color: rgb(91, 24, 110);
/* oklch */ color: oklch(36.1% 0.147 317.6);
Tailwind
colors: {
  custom: {
    50: '#8d5d98',
    500: '#5b186e',
    950: '#000000',
  },
}
SCSS
$custom: #5b186e;
$custom-light: #8d5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#5b186e",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 286.744,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36115,
    "c": 0.14661,
    "h": 317.6
  },
  "luminance": 0.04003
}

Semantic roles & 50–950 ramp

primary
#5B186E
secondary
#55A43E
accent
#E74165
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5B186E

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

Preview Lab → · Contrast checker → · Palette generator →

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