#5E1168#5E1168

#5E1168 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.150 H 322.7°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#5E1168
RGBrgb(94, 17, 104)
HSLhsl(293, 72%, 24%)
HSVhsv(293, 84%, 41%)
CMYKcmyk(9.6%, 83.7%, 0%, 59.2%)
CIE-LABlab(22.93, 44.87, -32.45)
CIE-LCHlch(22.93, 55.38, 324.12°)
OKLaboklab(35.55% 0.1193 -0.0908)
OKLCHoklch(35.55% 0.15 322.7)
XYZxyz(7.3150, 3.7805, 13.4384)
Luminance0.0378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1168 #1B6811
analogous
#321168 #5E1168 #681146
triadic
#5E1168 #685E11 #11685E
tetradic
#5E1168 #683211 #1B6811 #114668
square
#5E1168 #683211 #1B6811 #114668
split-complementary
#5E1168 #466811 #116832
monochromatic
#18041A #2E0833 #5E1168 #8E1A9D #BD22D1

Accessibility & contrast

On white

11.96
#5E1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5E1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1168
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1168#FFFFFF#000000##FFFFFF
##5E11681.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#203A66
Tritanopia (blue-blind)
#5F233D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5e1168;
/* rgb */ color: rgb(94, 17, 104);
/* oklch */ color: oklch(35.5% 0.150 322.7);
Tailwind
colors: {
  custom: {
    50: '#8f5a94',
    500: '#5e1168',
    950: '#000000',
  },
}
SCSS
$custom: #5e1168;
$custom-light: #8f5a94;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1168",
  "rgb": {
    "r": 94,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 293.103,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.3555,
    "c": 0.14993,
    "h": 322.7
  },
  "luminance": 0.0378
}

Semantic roles & 50–950 ramp

primary
#5E1168
secondary
#41A035
accent
#EF394E
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E1168

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

Preview Lab → · Contrast checker → · Palette generator →

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