#5E1768#5E1768

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

Color values

HEX#5E1768
RGBrgb(94, 23, 104)
HSLhsl(293, 64%, 25%)
HSVhsv(293, 78%, 41%)
CMYKcmyk(9.6%, 77.9%, 0%, 59.2%)
CIE-LABlab(23.65, 42.81, -31.31)
CIE-LCHlch(23.65, 53.04, 323.82°)
OKLaboklab(36.06% 0.1138 -0.0875)
OKLCHoklch(36.06% 0.144 322.4)
XYZxyz(7.4209, 3.9924, 13.4737)
Luminance0.0399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1768 #216817
analogous
#361768 #5E1768 #681749
triadic
#5E1768 #685E17 #17685E
tetradic
#5E1768 #683617 #216817 #174968
square
#5E1768 #683617 #216817 #174968
split-complementary
#5E1768 #496817 #176836
monochromatic
#170619 #310C36 #5E1768 #8B229A #B92DCC

Accessibility & contrast

On white

11.68
#5E1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1768
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1768#FFFFFF#000000##FFFFFF
##5E17681.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336A
Deuteranopia (green-blind)
#233B66
Tritanopia (blue-blind)
#5F263E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5e1768;
/* rgb */ color: rgb(94, 23, 104);
/* oklch */ color: oklch(36.1% 0.144 322.4);
Tailwind
colors: {
  custom: {
    50: '#8f5d93',
    500: '#5e1768',
    950: '#000000',
  },
}
SCSS
$custom: #5e1768;
$custom-light: #8f5d93;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1768",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 292.593,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.36057,
    "c": 0.14351,
    "h": 322.4
  },
  "luminance": 0.03992
}

Semantic roles & 50–950 ramp

primary
#5E1768
secondary
#499E3D
accent
#E74155
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E1768

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

Preview Lab → · Contrast checker → · Palette generator →

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