#5B186A#5B186A

#5B186A is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.143 H 319.5°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#5B186A
RGBrgb(91, 24, 106)
HSLhsl(289, 63%, 25%)
HSVhsv(289, 77%, 42%)
CMYKcmyk(14.2%, 77.4%, 0%, 58.4%)
CIE-LABlab(23.40, 42.15, -33.03)
CIE-LCHlch(23.40, 53.55, 321.91°)
OKLaboklab(35.82% 0.1087 -0.0926)
OKLCHoklch(35.82% 0.143 319.5)
XYZxyz(7.2422, 3.9184, 14.0077)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B186A #276A18
analogous
#32186A #5B186A #6A1850
triadic
#5B186A #6A5B18 #186A5B
tetradic
#5B186A #6A3218 #276A18 #18506A
square
#5B186A #6A3218 #276A18 #18506A
split-complementary
#5B186A #506A18 #186A32
monochromatic
#150619 #300D38 #5B186A #86239C #B12FCE

Accessibility & contrast

On white

11.77
#5B186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5B186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B186A
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B186A#FFFFFF#000000##FFFFFF
##5B186A1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#1F3A68
Tritanopia (blue-blind)
#5B2840
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b186a;
/* rgb */ color: rgb(91, 24, 106);
/* oklch */ color: oklch(35.8% 0.143 319.5);
Tailwind
colors: {
  custom: {
    50: '#8c5d95',
    500: '#5b186a',
    950: '#000000',
  },
}
SCSS
$custom: #5b186a;
$custom-light: #8c5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#5b186a",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 289.024,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35823,
    "c": 0.1428,
    "h": 319.5
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

primary
#5B186A
secondary
#50A03E
accent
#E64260
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B186A

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

Preview Lab → · Contrast checker → · Palette generator →

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