#5D186F#5D186F

#5D186F is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.148 H 318.3°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#5D186F
RGBrgb(93, 24, 111)
HSLhsl(288, 64%, 26%)
HSVhsv(288, 78%, 44%)
CMYKcmyk(16.2%, 78.4%, 0%, 56.5%)
CIE-LABlab(24.09, 43.63, -35.14)
CIE-LCHlch(24.09, 56.02, 321.15°)
OKLaboklab(36.49% 0.1108 -0.0987)
OKLCHoklch(36.49% 0.148 318.3)
XYZxyz(7.7097, 4.1285, 15.4266)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D186F #2A6F18
analogous
#32186F #5D186F #6F1856
triadic
#5D186F #6F5D18 #186F5D
tetradic
#5D186F #6F3218 #2A6F18 #18566F
square
#5D186F #6F3218 #2A6F18 #18566F
split-complementary
#5D186F #566F18 #186F32
monochromatic
#150519 #330D3D #5D186F #8723A1 #B02FD2

Accessibility & contrast

On white

11.50
#5D186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5D186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D186F
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D186F#FFFFFF#000000##FFFFFF
##5D186F1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#1C3B6D
Tritanopia (blue-blind)
#5D2A42
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d186f;
/* rgb */ color: rgb(93, 24, 111);
/* oklch */ color: oklch(36.5% 0.148 318.3);
Tailwind
colors: {
  custom: {
    50: '#8e5d99',
    500: '#5d186f',
    950: '#000000',
  },
}
SCSS
$custom: #5d186f;
$custom-light: #8e5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#5d186f",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 287.586,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36494,
    "c": 0.14839,
    "h": 318.3
  },
  "luminance": 0.04128
}

Semantic roles & 50–950 ramp

primary
#5D186F
secondary
#53A53E
accent
#E74063
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D186F

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

Preview Lab → · Contrast checker → · Palette generator →

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