#5E157A#5E157A

#5E157A is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.162 H 314.1°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#5E157A
RGBrgb(94, 21, 122)
HSLhsl(283, 71%, 28%)
HSVhsv(283, 83%, 48%)
CMYKcmyk(23%, 82.8%, 0%, 52.2%)
CIE-LABlab(24.71, 47.22, -41.19)
CIE-LCHlch(24.71, 62.66, 318.91°)
OKLaboklab(37.22% 0.113 -0.1164)
OKLCHoklch(37.22% 0.162 314.1)
XYZxyz(8.3965, 4.3214, 18.8004)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E157A #317A15
analogous
#2B157A #5E157A #7A1563
triadic
#5E157A #7A5E15 #157A5E
tetradic
#5E157A #7A2B15 #317A15 #15637A
square
#5E157A #7A2B15 #317A15 #15637A
split-complementary
#5E157A #637A15 #157A2B
monochromatic
#14041A #360C46 #5E157A #861EAE #AB2EDB

Accessibility & contrast

On white

11.26
#5E157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5E157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E157A
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E157A#FFFFFF#000000##FFFFFF
##5E157A1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#0B3C78
Tritanopia (blue-blind)
#5B2E48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e157a;
/* rgb */ color: rgb(94, 21, 122);
/* oklch */ color: oklch(37.2% 0.162 314.1);
Tailwind
colors: {
  custom: {
    50: '#905da1',
    500: '#5e157a',
    950: '#000000',
  },
}
SCSS
$custom: #5e157a;
$custom-light: #905da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e157a",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 283.366,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37222,
    "c": 0.16224,
    "h": 314.1
  },
  "luminance": 0.04321
}

Semantic roles & 50–950 ramp

primary
#5E157A
secondary
#5CAF3B
accent
#ED3A6C
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E157A

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

Preview Lab → · Contrast checker → · Palette generator →

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