#5E186A#5E186A

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

Color values

HEX#5E186A
RGBrgb(94, 24, 106)
HSLhsl(291, 63%, 25%)
HSVhsv(291, 77%, 42%)
CMYKcmyk(11.3%, 77.4%, 0%, 58.4%)
CIE-LABlab(23.91, 42.83, -32.18)
CIE-LCHlch(23.91, 53.57, 323.08°)
OKLaboklab(36.29% 0.1126 -0.09)
OKLCHoklch(36.29% 0.144 321.3)
XYZxyz(7.5440, 4.0740, 14.0219)
Luminance0.0407 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E186A #246A18
analogous
#35186A #5E186A #6A184D
triadic
#5E186A #6A5E18 #186A5E
tetradic
#5E186A #6A3518 #246A18 #184D6A
square
#5E186A #6A3518 #246A18 #184D6A
split-complementary
#5E186A #4D6A18 #186A35
monochromatic
#160619 #320D38 #5E186A #8A239C #B72FCE

Accessibility & contrast

On white

11.57
#5E186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E186A
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E186A#FFFFFF#000000##FFFFFF
##5E186A1.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#223B68
Tritanopia (blue-blind)
#5F2840
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e186a;
/* rgb */ color: rgb(94, 24, 106);
/* oklch */ color: oklch(36.3% 0.144 321.3);
Tailwind
colors: {
  custom: {
    50: '#8f5d95',
    500: '#5e186a',
    950: '#000000',
  },
}
SCSS
$custom: #5e186a;
$custom-light: #8f5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#5e186a",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 291.22,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.36291,
    "c": 0.14416,
    "h": 321.3
  },
  "luminance": 0.04074
}

Semantic roles & 50–950 ramp

primary
#5E186A
secondary
#4CA03E
accent
#E6425A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5E186A

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

Preview Lab → · Contrast checker → · Palette generator →

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