#5E166B#5E166B

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

Color values

HEX#5E166B
RGBrgb(94, 22, 107)
HSLhsl(291, 66%, 25%)
HSVhsv(291, 79%, 42%)
CMYKcmyk(12.1%, 79.4%, 0%, 58%)
CIE-LABlab(23.72, 43.78, -33.14)
CIE-LCHlch(23.72, 54.91, 322.88°)
OKLaboklab(36.18% 0.1145 -0.0928)
OKLCHoklch(36.18% 0.147 321)
XYZxyz(7.5565, 4.0154, 14.2841)
Luminance0.0401 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E166B #236B16
analogous
#34166B #5E166B #6B164D
triadic
#5E166B #6B5E16 #166B5E
tetradic
#5E166B #6B3416 #236B16 #164D6B
square
#5E166B #6B3416 #236B16 #164D6B
split-complementary
#5E166B #4D6B16 #166B34
monochromatic
#160519 #310C38 #5E166B #8B209E #B72BD1

Accessibility & contrast

On white

11.65
#5E166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5E166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E166B
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E166B#FFFFFF#000000##FFFFFF
##5E166B1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#203B69
Tritanopia (blue-blind)
#5F2740
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5e166b;
/* rgb */ color: rgb(94, 22, 107);
/* oklch */ color: oklch(36.2% 0.147 321.0);
Tailwind
colors: {
  custom: {
    50: '#8f5c96',
    500: '#5e166b',
    950: '#000000',
  },
}
SCSS
$custom: #5e166b;
$custom-light: #8f5c96;
$custom-dark: #000000;
JSON
{
  "hex": "#5e166b",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 290.824,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36177,
    "c": 0.14739,
    "h": 321
  },
  "luminance": 0.04015
}

Semantic roles & 50–950 ramp

primary
#5E166B
secondary
#4BA13B
accent
#E93F59
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E166B

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

Preview Lab → · Contrast checker → · Palette generator →

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