#5E186B#5E186B

#5E186B is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.145 H 320.8°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#5E186B
RGBrgb(94, 24, 107)
HSLhsl(291, 63%, 26%)
HSVhsv(291, 78%, 42%)
CMYKcmyk(12.1%, 77.6%, 0%, 58%)
CIE-LABlab(23.98, 43.03, -32.72)
CIE-LCHlch(23.98, 54.06, 322.75°)
OKLaboklab(36.36% 0.1125 -0.0916)
OKLCHoklch(36.36% 0.145 320.8)
XYZxyz(7.5963, 4.0949, 14.2973)
Luminance0.0409 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E186B #256B18
analogous
#34186B #5E186B #6B184E
triadic
#5E186B #6B5E18 #186B5E
tetradic
#5E186B #6B3418 #256B18 #184E6B
square
#5E186B #6B3418 #256B18 #184E6B
split-complementary
#5E186B #4E6B18 #186B34
monochromatic
#160619 #320D39 #5E186B #8A239D #B62ECF

Accessibility & contrast

On white

11.55
#5E186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5E186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E186B
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E186B#FFFFFF#000000##FFFFFF
##5E186B1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#213C69
Tritanopia (blue-blind)
#5F2840
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e186b;
/* rgb */ color: rgb(94, 24, 107);
/* oklch */ color: oklch(36.4% 0.145 320.8);
Tailwind
colors: {
  custom: {
    50: '#8f5d96',
    500: '#5e186b',
    950: '#000000',
  },
}
SCSS
$custom: #5e186b;
$custom-light: #8f5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#5e186b",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 290.602,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36362,
    "c": 0.14509,
    "h": 320.8
  },
  "luminance": 0.04094
}

Semantic roles & 50–950 ramp

primary
#5E186B
secondary
#4DA13E
accent
#E6415B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5E186B

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

Preview Lab → · Contrast checker → · Palette generator →

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