#5D186C#5D186C

#5D186C is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.3% C 0.146 H 319.7°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#5D186C
RGBrgb(93, 24, 108)
HSLhsl(289, 64%, 26%)
HSVhsv(289, 78%, 42%)
CMYKcmyk(13.9%, 77.8%, 0%, 57.6%)
CIE-LABlab(23.88, 43.01, -33.54)
CIE-LCHlch(23.88, 54.54, 322.05°)
OKLaboklab(36.28% 0.1111 -0.0941)
OKLCHoklch(36.28% 0.146 319.7)
XYZxyz(7.5473, 4.0635, 14.5712)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D186C #276C18
analogous
#33186C #5D186C #6C1851
triadic
#5D186C #6C5D18 #186C5D
tetradic
#5D186C #6C3318 #276C18 #18516C
square
#5D186C #6C3318 #276C18 #18516C
split-complementary
#5D186C #516C18 #186C33
monochromatic
#160619 #320D3A #5D186C #88239E #B32ED0

Accessibility & contrast

On white

11.59
#5D186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D186C
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D186C#FFFFFF#000000##FFFFFF
##5D186C1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#1F3B6A
Tritanopia (blue-blind)
#5D2941
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d186c;
/* rgb */ color: rgb(93, 24, 108);
/* oklch */ color: oklch(36.3% 0.146 319.7);
Tailwind
colors: {
  custom: {
    50: '#8e5d97',
    500: '#5d186c',
    950: '#000000',
  },
}
SCSS
$custom: #5d186c;
$custom-light: #8e5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5d186c",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 289.286,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36277,
    "c": 0.14557,
    "h": 319.7
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#5D186C
secondary
#50A23E
accent
#E7415F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5D186C

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

Preview Lab → · Contrast checker → · Palette generator →

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