#5E1458#5E1458

#5E1458 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.133 H 331.6°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#5E1458
RGBrgb(94, 20, 88)
HSLhsl(305, 65%, 22%)
HSVhsv(305, 79%, 37%)
CMYKcmyk(0%, 78.7%, 6.4%, 63.1%)
CIE-LABlab(22.25, 40.93, -22.99)
CIE-LCHlch(22.25, 46.94, 330.68°)
OKLaboklab(34.73% 0.1171 -0.0633)
OKLCHoklch(34.73% 0.133 331.6)
XYZxyz(6.6277, 3.5851, 9.5736)
Luminance0.0358 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1458 #145E1A
analogous
#3F145E #5E1458 #5E1433
triadic
#5E1458 #585E14 #14585E
tetradic
#5E1458 #5E3F14 #145E1A #14335E
square
#5E1458 #5E3F14 #145E1A #14335E
split-complementary
#5E1458 #335E14 #145E3F
monochromatic
#190518 #2C0929 #5E1458 #901F87 #C329B6

Accessibility & contrast

On white

12.23
#5E1458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5E1458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1458
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1458#FFFFFF#000000##FFFFFF
##5E14581.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2F5A
Deuteranopia (green-blind)
#2C3956
Tritanopia (blue-blind)
#621D35
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5e1458;
/* rgb */ color: rgb(94, 20, 88);
/* oklch */ color: oklch(34.7% 0.133 331.6);
Tailwind
colors: {
  custom: {
    50: '#8f5b87',
    500: '#5e1458',
    950: '#000000',
  },
}
SCSS
$custom: #5e1458;
$custom-light: #8f5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1458",
  "rgb": {
    "r": 94,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 304.865,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34733,
    "c": 0.13312,
    "h": 331.6
  },
  "luminance": 0.03585
}

Semantic roles & 50–950 ramp

primary
#5E1458
secondary
#389640
accent
#E84E40
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E1458

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

Preview Lab → · Contrast checker → · Palette generator →

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