#5E1552#5E1552

#5E1552 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.127 H 335.5°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#5E1552
RGBrgb(94, 21, 82)
HSLhsl(310, 63%, 23%)
HSVhsv(310, 78%, 37%)
CMYKcmyk(0%, 77.7%, 12.8%, 63.1%)
CIE-LABlab(22.04, 39.54, -19.30)
CIE-LCHlch(22.04, 44.00, 333.98°)
OKLaboklab(34.47% 0.1156 -0.0527)
OKLCHoklch(34.47% 0.127 335.5)
XYZxyz(6.4073, 3.5258, 8.3241)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1552 #155E21
analogous
#45155E #5E1552 #5E152E
triadic
#5E1552 #525E15 #15525E
tetradic
#5E1552 #5E4515 #155E21 #152E5E
square
#5E1552 #5E4515 #155E21 #152E5E
split-complementary
#5E1552 #2E5E15 #155E45
monochromatic
#190616 #2C0A26 #5E1552 #90207E #C22BA9

Accessibility & contrast

On white

12.32
#5E1552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5E1552 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1552
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1552#FFFFFF#000000##FFFFFF
##5E15521.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152E54
Deuteranopia (green-blind)
#2F3950
Tritanopia (blue-blind)
#631B32
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5e1552;
/* rgb */ color: rgb(94, 21, 82);
/* oklch */ color: oklch(34.5% 0.127 335.5);
Tailwind
colors: {
  custom: {
    50: '#8e5b83',
    500: '#5e1552',
    950: '#000000',
  },
}
SCSS
$custom: #5e1552;
$custom-light: #8e5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1552",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 309.863,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3447,
    "c": 0.12704,
    "h": 335.5
  },
  "luminance": 0.03525
}

Semantic roles & 50–950 ramp

primary
#5E1552
secondary
#399549
accent
#E75C41
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5E1552

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

Preview Lab → · Contrast checker → · Palette generator →

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