#5E1572#5E1572

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

Color values

HEX#5E1572
RGBrgb(94, 21, 114)
HSLhsl(287, 69%, 26%)
HSVhsv(287, 82%, 45%)
CMYKcmyk(17.5%, 81.6%, 0%, 55.3%)
CIE-LABlab(24.10, 45.55, -37.05)
CIE-LCHlch(24.10, 58.72, 320.88°)
OKLaboklab(36.6% 0.1145 -0.1043)
OKLCHoklch(36.6% 0.155 317.7)
XYZxyz(7.9211, 4.1313, 16.2965)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1572 #297215
analogous
#301572 #5E1572 #721558
triadic
#5E1572 #725E15 #15725E
tetradic
#5E1572 #723015 #297215 #155872
square
#5E1572 #723015 #297215 #155872
split-complementary
#5E1572 #587215 #157230
monochromatic
#15051A #330B3E #5E1572 #891FA6 #B22AD8

Accessibility & contrast

On white

11.50
#5E1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1572
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1572#FFFFFF#000000##FFFFFF
##5E15721.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#183B70
Tritanopia (blue-blind)
#5D2A43
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1572;
/* rgb */ color: rgb(94, 21, 114);
/* oklch */ color: oklch(36.6% 0.155 317.7);
Tailwind
colors: {
  custom: {
    50: '#8f5c9b',
    500: '#5e1572',
    950: '#000000',
  },
}
SCSS
$custom: #5e1572;
$custom-light: #8f5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1572",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 287.097,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36604,
    "c": 0.15487,
    "h": 317.7
  },
  "luminance": 0.04131
}

Semantic roles & 50–950 ramp

primary
#5E1572
secondary
#52A83B
accent
#EC3C62
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E1572

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

Preview Lab → · Contrast checker → · Palette generator →

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