#5E186F#5E186F

#5E186F is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.149 H 318.9°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#5E186F
RGBrgb(94, 24, 111)
HSLhsl(288, 64%, 26%)
HSVhsv(288, 78%, 44%)
CMYKcmyk(15.3%, 78.4%, 0%, 56.5%)
CIE-LABlab(24.26, 43.85, -34.86)
CIE-LCHlch(24.26, 56.02, 321.52°)
OKLaboklab(36.65% 0.1121 -0.0979)
OKLCHoklch(36.65% 0.149 318.9)
XYZxyz(7.8116, 4.1810, 15.4314)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E186F #296F18
analogous
#33186F #5E186F #6F1855
triadic
#5E186F #6F5E18 #186F5E
tetradic
#5E186F #6F3318 #296F18 #18556F
square
#5E186F #6F3318 #296F18 #18556F
split-complementary
#5E186F #556F18 #186F33
monochromatic
#150519 #330D3D #5E186F #8923A1 #B22FD2

Accessibility & contrast

On white

11.44
#5E186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5E186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E186F
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E186F#FFFFFF#000000##FFFFFF
##5E186F1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#1E3C6D
Tritanopia (blue-blind)
#5E2A42
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e186f;
/* rgb */ color: rgb(94, 24, 111);
/* oklch */ color: oklch(36.6% 0.149 318.9);
Tailwind
colors: {
  custom: {
    50: '#8f5d99',
    500: '#5e186f',
    950: '#000000',
  },
}
SCSS
$custom: #5e186f;
$custom-light: #8f5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#5e186f",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 288.276,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36648,
    "c": 0.14882,
    "h": 318.9
  },
  "luminance": 0.04181
}

Semantic roles & 50–950 ramp

primary
#5E186F
secondary
#52A53E
accent
#E74061
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E186F

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

Preview Lab → · Contrast checker → · Palette generator →

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