#5E1452#5E1452

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

Color values

HEX#5E1452
RGBrgb(94, 20, 82)
HSLhsl(310, 65%, 22%)
HSVhsv(310, 79%, 37%)
CMYKcmyk(0%, 78.7%, 12.8%, 63.1%)
CIE-LABlab(21.91, 39.91, -19.51)
CIE-LCHlch(21.91, 44.42, 333.95°)
OKLaboklab(34.38% 0.1167 -0.0532)
OKLCHoklch(34.38% 0.128 335.5)
XYZxyz(6.3893, 3.4898, 8.3181)
Luminance0.0349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1452 #145E20
analogous
#45145E #5E1452 #5E142D
triadic
#5E1452 #525E14 #14525E
tetradic
#5E1452 #5E4514 #145E20 #142D5E
square
#5E1452 #5E4514 #145E20 #142D5E
split-complementary
#5E1452 #2D5E14 #145E45
monochromatic
#190516 #2C0926 #5E1452 #901F7E #C329AA

Accessibility & contrast

On white

12.37
#5E1452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1452
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1452#FFFFFF#000000##FFFFFF
##5E14521.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142D54
Deuteranopia (green-blind)
#2F3850
Tritanopia (blue-blind)
#631A31
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5e1452;
/* rgb */ color: rgb(94, 20, 82);
/* oklch */ color: oklch(34.4% 0.128 335.5);
Tailwind
colors: {
  custom: {
    50: '#8f5a83',
    500: '#5e1452',
    950: '#000000',
  },
}
SCSS
$custom: #5e1452;
$custom-light: #8f5a83;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1452",
  "rgb": {
    "r": 94,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 309.73,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34376,
    "c": 0.12827,
    "h": 335.5
  },
  "luminance": 0.03489
}

Semantic roles & 50–950 ramp

primary
#5E1452
secondary
#389647
accent
#E85B40
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5E1452

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

Preview Lab → · Contrast checker → · Palette generator →

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