#5E166D#5E166D

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

Color values

HEX#5E166D
RGBrgb(94, 22, 109)
HSLhsl(290, 66%, 26%)
HSVhsv(290, 80%, 43%)
CMYKcmyk(13.8%, 79.8%, 0%, 57.3%)
CIE-LABlab(23.86, 44.18, -34.21)
CIE-LCHlch(23.86, 55.88, 322.25°)
OKLaboklab(36.32% 0.1143 -0.096)
OKLCHoklch(36.32% 0.149 320)
XYZxyz(7.6630, 4.0580, 14.8447)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E166D #256D16
analogous
#32166D #5E166D #6D1650
triadic
#5E166D #6D5E16 #166D5E
tetradic
#5E166D #6D3216 #256D16 #16506D
square
#5E166D #6D3216 #256D16 #16506D
split-complementary
#5E166D #506D16 #166D32
monochromatic
#160519 #320C3A #5E166D #8A20A0 #B62BD3

Accessibility & contrast

On white

11.59
#5E166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E166D
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E166D#FFFFFF#000000##FFFFFF
##5E166D1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#1E3B6B
Tritanopia (blue-blind)
#5E2841
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e166d;
/* rgb */ color: rgb(94, 22, 109);
/* oklch */ color: oklch(36.3% 0.149 320.0);
Tailwind
colors: {
  custom: {
    50: '#8f5c97',
    500: '#5e166d',
    950: '#000000',
  },
}
SCSS
$custom: #5e166d;
$custom-light: #8f5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5e166d",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 289.655,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36321,
    "c": 0.14922,
    "h": 320
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

primary
#5E166D
secondary
#4DA33C
accent
#E93E5C
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E166D

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

Preview Lab → · Contrast checker → · Palette generator →

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