#5E166F#5E166F

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

Color values

HEX#5E166F
RGBrgb(94, 22, 111)
HSLhsl(289, 67%, 26%)
HSVhsv(289, 80%, 44%)
CMYKcmyk(15.3%, 80.2%, 0%, 56.5%)
CIE-LABlab(24.00, 44.59, -35.27)
CIE-LCHlch(24.00, 56.85, 321.65°)
OKLaboklab(36.47% 0.114 -0.0991)
OKLCHoklch(36.47% 0.151 319)
XYZxyz(7.7719, 4.1016, 15.4182)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E166F #276F16
analogous
#31166F #5E166F #6F1653
triadic
#5E166F #6F5E16 #166F5E
tetradic
#5E166F #6F3116 #276F16 #16536F
square
#5E166F #6F3116 #276F16 #16536F
split-complementary
#5E166F #536F16 #166F31
monochromatic
#16051A #330C3C #5E166F #8920A2 #B42BD5

Accessibility & contrast

On white

11.54
#5E166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E166F
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E166F#FFFFFF#000000##FFFFFF
##5E166F1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#1C3B6D
Tritanopia (blue-blind)
#5E2942
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e166f;
/* rgb */ color: rgb(94, 22, 111);
/* oklch */ color: oklch(36.5% 0.151 319.0);
Tailwind
colors: {
  custom: {
    50: '#8f5c99',
    500: '#5e166f',
    950: '#000000',
  },
}
SCSS
$custom: #5e166f;
$custom-light: #8f5c99;
$custom-dark: #000000;
JSON
{
  "hex": "#5e166f",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 288.539,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36467,
    "c": 0.15105,
    "h": 319
  },
  "luminance": 0.04101
}

Semantic roles & 50–950 ramp

primary
#5E166F
secondary
#50A53C
accent
#EA3E5F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E166F

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

Preview Lab → · Contrast checker → · Palette generator →

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