#5E1766#5E1766

#5E1766 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 35.9% C 0.142 H 323.5°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#5E1766
RGBrgb(94, 23, 102)
HSLhsl(294, 63%, 25%)
HSVhsv(294, 77%, 40%)
CMYKcmyk(7.8%, 77.5%, 0%, 60%)
CIE-LABlab(23.51, 42.42, -30.22)
CIE-LCHlch(23.51, 52.08, 324.54°)
OKLaboklab(35.92% 0.1139 -0.0843)
OKLCHoklch(35.92% 0.142 323.5)
XYZxyz(7.3205, 3.9522, 12.9451)
Luminance0.0395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1766 #1F6617
analogous
#371766 #5E1766 #661747
triadic
#5E1766 #665E17 #17665E
tetradic
#5E1766 #663717 #1F6617 #174766
square
#5E1766 #663717 #1F6617 #174766
split-complementary
#5E1766 #476617 #176637
monochromatic
#170619 #300C34 #5E1766 #8C2298 #BA2ECA

Accessibility & contrast

On white

11.73
#5E1766 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5E1766 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1766
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1766#FFFFFF#000000##FFFFFF
##5E17661.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003368
Deuteranopia (green-blind)
#253B64
Tritanopia (blue-blind)
#60253D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5e1766;
/* rgb */ color: rgb(94, 23, 102);
/* oklch */ color: oklch(35.9% 0.142 323.5);
Tailwind
colors: {
  custom: {
    50: '#8f5c92',
    500: '#5e1766',
    950: '#000000',
  },
}
SCSS
$custom: #5e1766;
$custom-light: #8f5c92;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1766",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 293.924,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.35919,
    "c": 0.14169,
    "h": 323.5
  },
  "luminance": 0.03952
}

Semantic roles & 50–950 ramp

primary
#5E1766
secondary
#469C3C
accent
#E64252
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E1766

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

Preview Lab → · Contrast checker → · Palette generator →

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