#5E157F#5E157F

#5E157F is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.6% C 0.167 H 312.1°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#5E157F
RGBrgb(94, 21, 127)
HSLhsl(281, 72%, 29%)
HSVhsv(281, 83%, 50%)
CMYKcmyk(26%, 83.5%, 0%, 50.2%)
CIE-LABlab(25.10, 48.29, -43.71)
CIE-LCHlch(25.10, 65.14, 317.85°)
OKLaboklab(37.62% 0.1119 -0.1239)
OKLCHoklch(37.62% 0.167 312.1)
XYZxyz(8.7143, 4.4486, 20.4742)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E157F #367F15
analogous
#29157F #5E157F #7F156B
triadic
#5E157F #7F5E15 #157F5E
tetradic
#5E157F #7F2915 #367F15 #156B7F
square
#5E157F #7F2915 #367F15 #156B7F
split-complementary
#5E157F #6B7F15 #157F29
monochromatic
#13041A #370C4A #5E157F #851EB4 #A831DD

Accessibility & contrast

On white

11.11
#5E157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5E157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E157F
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E157F#FFFFFF#000000##FFFFFF
##5E157F1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#5A304B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e157f;
/* rgb */ color: rgb(94, 21, 127);
/* oklch */ color: oklch(37.6% 0.167 312.1);
Tailwind
colors: {
  custom: {
    50: '#905da5',
    500: '#5e157f',
    950: '#000000',
  },
}
SCSS
$custom: #5e157f;
$custom-light: #905da5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e157f",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 281.321,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37623,
    "c": 0.1669,
    "h": 312.1
  },
  "luminance": 0.04448
}

Semantic roles & 50–950 ramp

primary
#5E157F
secondary
#61B43C
accent
#EE3972
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E157F

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

Preview Lab → · Contrast checker → · Palette generator →

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