#5E186D#5E186D

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

Color values

HEX#5E186D
RGBrgb(94, 24, 109)
HSLhsl(289, 64%, 26%)
HSVhsv(289, 78%, 43%)
CMYKcmyk(13.8%, 78%, 0%, 57.3%)
CIE-LABlab(24.12, 43.44, -33.79)
CIE-LCHlch(24.12, 55.04, 322.12°)
OKLaboklab(36.5% 0.1123 -0.0948)
OKLCHoklch(36.5% 0.147 319.8)
XYZxyz(7.7027, 4.1375, 14.8579)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E186D #276D18
analogous
#33186D #5E186D #6D1851
triadic
#5E186D #6D5E18 #186D5E
tetradic
#5E186D #6D3318 #276D18 #18516D
square
#5E186D #6D3318 #276D18 #18516D
split-complementary
#5E186D #516D18 #186D33
monochromatic
#160619 #330D3B #5E186D #89239F #B42ED1

Accessibility & contrast

On white

11.49
#5E186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E186D
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E186D#FFFFFF#000000##FFFFFF
##5E186D1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356F
Deuteranopia (green-blind)
#203C6B
Tritanopia (blue-blind)
#5E2941
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e186d;
/* rgb */ color: rgb(94, 24, 109);
/* oklch */ color: oklch(36.5% 0.147 319.8);
Tailwind
colors: {
  custom: {
    50: '#8f5d97',
    500: '#5e186d',
    950: '#000000',
  },
}
SCSS
$custom: #5e186d;
$custom-light: #8f5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5e186d",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 289.412,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36504,
    "c": 0.14694,
    "h": 319.8
  },
  "luminance": 0.04137
}

Semantic roles & 50–950 ramp

primary
#5E186D
secondary
#50A33E
accent
#E7415E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5E186D

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

Preview Lab → · Contrast checker → · Palette generator →

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