#5E1671#5E1671

#5E1671 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.153 H 318.1°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#5E1671
RGBrgb(94, 22, 113)
HSLhsl(287, 67%, 26%)
HSVhsv(287, 81%, 44%)
CMYKcmyk(16.8%, 80.5%, 0%, 55.7%)
CIE-LABlab(24.15, 45.00, -36.33)
CIE-LCHlch(24.15, 57.83, 321.08°)
OKLaboklab(36.61% 0.1137 -0.1022)
OKLCHoklch(36.61% 0.153 318.1)
XYZxyz(7.8832, 4.1461, 16.0046)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1671 #297116
analogous
#311671 #5E1671 #711657
triadic
#5E1671 #715E16 #16715E
tetradic
#5E1671 #713116 #297116 #165771
square
#5E1671 #713116 #297116 #165771
split-complementary
#5E1671 #577116 #167131
monochromatic
#15051A #330C3E #5E1671 #8920A4 #B22CD6

Accessibility & contrast

On white

11.48
#5E1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5E1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1671
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1671#FFFFFF#000000##FFFFFF
##5E16711.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#1A3C6F
Tritanopia (blue-blind)
#5D2A43
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1671;
/* rgb */ color: rgb(94, 22, 113);
/* oklch */ color: oklch(36.6% 0.153 318.1);
Tailwind
colors: {
  custom: {
    50: '#8f5d9a',
    500: '#5e1671',
    950: '#000000',
  },
}
SCSS
$custom: #5e1671;
$custom-light: #8f5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1671",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 287.473,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36614,
    "c": 0.1529,
    "h": 318.1
  },
  "luminance": 0.04146
}

Semantic roles & 50–950 ramp

primary
#5E1671
secondary
#52A73C
accent
#EA3E62
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1671

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

Preview Lab → · Contrast checker → · Palette generator →

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