#5E166A#5E166A

#5E166A is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.146 H 321.5°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#5E166A
RGBrgb(94, 22, 106)
HSLhsl(291, 66%, 25%)
HSVhsv(291, 79%, 42%)
CMYKcmyk(11.3%, 79.2%, 0%, 58.4%)
CIE-LABlab(23.65, 43.58, -32.60)
CIE-LCHlch(23.65, 54.42, 323.20°)
OKLaboklab(36.11% 0.1146 -0.0913)
OKLCHoklch(36.11% 0.146 321.5)
XYZxyz(7.5042, 3.9945, 14.0086)
Luminance0.0399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E166A #226A16
analogous
#34166A #5E166A #6A164C
triadic
#5E166A #6A5E16 #166A5E
tetradic
#5E166A #6A3416 #226A16 #164C6A
square
#5E166A #6A3416 #226A16 #164C6A
split-complementary
#5E166A #4C6A16 #166A34
monochromatic
#160519 #310B37 #5E166A #8B219D #B82BCF

Accessibility & contrast

On white

11.67
#5E166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E166A
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E166A#FFFFFF#000000##FFFFFF
##5E166A1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#213B68
Tritanopia (blue-blind)
#5F273F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5e166a;
/* rgb */ color: rgb(94, 22, 106);
/* oklch */ color: oklch(36.1% 0.146 321.5);
Tailwind
colors: {
  custom: {
    50: '#8f5c95',
    500: '#5e166a',
    950: '#000000',
  },
}
SCSS
$custom: #5e166a;
$custom-light: #8f5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5e166a",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 291.429,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.36106,
    "c": 0.14648,
    "h": 321.5
  },
  "luminance": 0.03994
}

Semantic roles & 50–950 ramp

primary
#5E166A
secondary
#4AA03B
accent
#E93F57
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E166A

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

Preview Lab → · Contrast checker → · Palette generator →

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