#5E1668#5E1668

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

Color values

HEX#5E1668
RGBrgb(94, 22, 104)
HSLhsl(293, 65%, 25%)
HSVhsv(293, 79%, 41%)
CMYKcmyk(9.6%, 78.8%, 0%, 59.2%)
CIE-LABlab(23.52, 43.18, -31.52)
CIE-LCHlch(23.52, 53.46, 323.88°)
OKLaboklab(35.97% 0.1148 -0.0881)
OKLCHoklch(35.97% 0.145 322.5)
XYZxyz(7.4014, 3.9534, 13.4673)
Luminance0.0395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1668 #206816
analogous
#351668 #5E1668 #681649
triadic
#5E1668 #685E16 #16685E
tetradic
#5E1668 #683516 #206816 #164968
square
#5E1668 #683516 #206816 #164968
split-complementary
#5E1668 #496816 #166835
monochromatic
#170519 #300B35 #5E1668 #8C219B #B92BCD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E1668#FFFFFF#000000##FFFFFF
##5E16681.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)
#00336A
Deuteranopia (green-blind)
#233B66
Tritanopia (blue-blind)
#5F263E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5e1668;
/* rgb */ color: rgb(94, 22, 104);
/* oklch */ color: oklch(36.0% 0.145 322.5);
Tailwind
colors: {
  custom: {
    50: '#8f5c93',
    500: '#5e1668',
    950: '#000000',
  },
}
SCSS
$custom: #5e1668;
$custom-light: #8f5c93;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1668",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 292.683,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35965,
    "c": 0.14467,
    "h": 322.5
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#5E1668
secondary
#479F3B
accent
#E84054
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E1668

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

Preview Lab → · Contrast checker → · Palette generator →

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