#5E166C#5E166C

#5E166C is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.148 H 320.5°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#5E166C
RGBrgb(94, 22, 108)
HSLhsl(290, 66%, 25%)
HSVhsv(290, 80%, 42%)
CMYKcmyk(13%, 79.6%, 0%, 57.6%)
CIE-LABlab(23.79, 43.98, -33.67)
CIE-LCHlch(23.79, 55.39, 322.56°)
OKLaboklab(36.25% 0.1144 -0.0944)
OKLCHoklch(36.25% 0.148 320.5)
XYZxyz(7.6095, 4.0366, 14.5628)
Luminance0.0404 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E166C #246C16
analogous
#33166C #5E166C #6C164F
triadic
#5E166C #6C5E16 #166C5E
tetradic
#5E166C #6C3316 #246C16 #164F6C
square
#5E166C #6C3316 #246C16 #164F6C
split-complementary
#5E166C #4F6C16 #166C33
monochromatic
#160519 #320C39 #5E166C #8A209F #B72BD2

Accessibility & contrast

On white

11.62
#5E166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E166C
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E166C#FFFFFF#000000##FFFFFF
##5E166C1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#1F3B6A
Tritanopia (blue-blind)
#5E2840
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e166c;
/* rgb */ color: rgb(94, 22, 108);
/* oklch */ color: oklch(36.2% 0.148 320.5);
Tailwind
colors: {
  custom: {
    50: '#8f5c97',
    500: '#5e166c',
    950: '#000000',
  },
}
SCSS
$custom: #5e166c;
$custom-light: #8f5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5e166c",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 290.233,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.36248,
    "c": 0.1483,
    "h": 320.5
  },
  "luminance": 0.04036
}

Semantic roles & 50–950 ramp

primary
#5E166C
secondary
#4CA23C
accent
#E93F5A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E166C

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

Preview Lab → · Contrast checker → · Palette generator →

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