#5E186E#5E186E

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

Color values

HEX#5E186E
RGBrgb(94, 24, 110)
HSLhsl(289, 64%, 26%)
HSVhsv(289, 78%, 43%)
CMYKcmyk(14.5%, 78.2%, 0%, 56.9%)
CIE-LABlab(24.19, 43.64, -34.33)
CIE-LCHlch(24.19, 55.53, 321.81°)
OKLaboklab(36.58% 0.1122 -0.0963)
OKLCHoklch(36.58% 0.148 319.3)
XYZxyz(7.7568, 4.1591, 15.1430)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E186E #286E18
analogous
#33186E #5E186E #6E1853
triadic
#5E186E #6E5E18 #186E5E
tetradic
#5E186E #6E3318 #286E18 #18536E
square
#5E186E #6E3318 #286E18 #18536E
split-complementary
#5E186E #536E18 #186E33
monochromatic
#150519 #330D3C #5E186E #8923A0 #B32FD2

Accessibility & contrast

On white

11.46
#5E186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E186E
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E186E#FFFFFF#000000##FFFFFF
##5E186E1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#1F3C6C
Tritanopia (blue-blind)
#5E2A42
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e186e;
/* rgb */ color: rgb(94, 24, 110);
/* oklch */ color: oklch(36.6% 0.148 319.3);
Tailwind
colors: {
  custom: {
    50: '#8f5d98',
    500: '#5e186e',
    950: '#000000',
  },
}
SCSS
$custom: #5e186e;
$custom-light: #8f5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#5e186e",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 288.837,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36576,
    "c": 0.14788,
    "h": 319.3
  },
  "luminance": 0.04159
}

Semantic roles & 50–950 ramp

primary
#5E186E
secondary
#51A43E
accent
#E74160
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E186E

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

Preview Lab → · Contrast checker → · Palette generator →

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