#5D186D#5D186D

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

Color values

HEX#5D186D
RGBrgb(93, 24, 109)
HSLhsl(289, 64%, 26%)
HSVhsv(289, 78%, 43%)
CMYKcmyk(14.7%, 78%, 0%, 57.3%)
CIE-LABlab(23.95, 43.22, -34.08)
CIE-LCHlch(23.95, 55.03, 321.74°)
OKLaboklab(36.35% 0.111 -0.0956)
OKLCHoklch(36.35% 0.147 319.2)
XYZxyz(7.6008, 4.0849, 14.8531)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D186D #286D18
analogous
#32186D #5D186D #6D1852
triadic
#5D186D #6D5D18 #186D5D
tetradic
#5D186D #6D3218 #286D18 #18526D
square
#5D186D #6D3218 #286D18 #18526D
split-complementary
#5D186D #526D18 #186D32
monochromatic
#150619 #320D3B #5D186D #88239F #B22ED1

Accessibility & contrast

On white

11.56
#5D186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5D186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D186D
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D186D#FFFFFF#000000##FFFFFF
##5D186D1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d186d;
/* rgb */ color: rgb(93, 24, 109);
/* oklch */ color: oklch(36.3% 0.147 319.2);
Tailwind
colors: {
  custom: {
    50: '#8e5d97',
    500: '#5d186d',
    950: '#000000',
  },
}
SCSS
$custom: #5d186d;
$custom-light: #8e5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5d186d",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 288.706,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36349,
    "c": 0.14651,
    "h": 319.2
  },
  "luminance": 0.04085
}

Semantic roles & 50–950 ramp

primary
#5D186D
secondary
#51A33E
accent
#E74160
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5D186D

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

Preview Lab → · Contrast checker → · Palette generator →

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