#5E1566#5E1566

#5E1566 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.7% C 0.144 H 323.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#5E1566
RGBrgb(94, 21, 102)
HSLhsl(294, 66%, 24%)
HSVhsv(294, 79%, 40%)
CMYKcmyk(7.8%, 79.4%, 0%, 60%)
CIE-LABlab(23.26, 43.15, -30.63)
CIE-LCHlch(23.26, 52.92, 324.64°)
OKLaboklab(35.74% 0.1159 -0.0855)
OKLCHoklch(35.74% 0.144 323.6)
XYZxyz(7.2823, 3.8758, 12.9323)
Luminance0.0387 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1566 #1D6615
analogous
#361566 #5E1566 #661546
triadic
#5E1566 #665E15 #15665E
tetradic
#5E1566 #663615 #1D6615 #154666
square
#5E1566 #663615 #1D6615 #154666
split-complementary
#5E1566 #466615 #156636
monochromatic
#170519 #2F0B33 #5E1566 #8D1F99 #BC2ACC

Accessibility & contrast

On white

11.83
#5E1566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5E1566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1566
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1566#FFFFFF#000000##FFFFFF
##5E15661.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003268
Deuteranopia (green-blind)
#243A64
Tritanopia (blue-blind)
#60243D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5e1566;
/* rgb */ color: rgb(94, 21, 102);
/* oklch */ color: oklch(35.7% 0.144 323.6);
Tailwind
colors: {
  custom: {
    50: '#8f5c92',
    500: '#5e1566',
    950: '#000000',
  },
}
SCSS
$custom: #5e1566;
$custom-light: #8f5c92;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1566",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 294.074,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35737,
    "c": 0.14401,
    "h": 323.6
  },
  "luminance": 0.03875
}

Semantic roles & 50–950 ramp

primary
#5E1566
secondary
#449D3A
accent
#E93F50
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E1566

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

Preview Lab → · Contrast checker → · Palette generator →

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