#5E157C#5E157C

#5E157C is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.164 H 313.3°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#5E157C
RGBrgb(94, 21, 124)
HSLhsl(283, 71%, 28%)
HSVhsv(283, 83%, 49%)
CMYKcmyk(24.2%, 83.1%, 0%, 51.4%)
CIE-LABlab(24.86, 47.65, -42.20)
CIE-LCHlch(24.86, 63.65, 318.47°)
OKLaboklab(37.38% 0.1125 -0.1194)
OKLCHoklch(37.38% 0.164 313.3)
XYZxyz(8.5217, 4.3715, 19.4598)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E157C #337C15
analogous
#2A157C #5E157C #7C1566
triadic
#5E157C #7C5E15 #157C5E
tetradic
#5E157C #7C2A15 #337C15 #15667C
square
#5E157C #7C2A15 #337C15 #15667C
split-complementary
#5E157C #667C15 #157C2A
monochromatic
#14041A #360C48 #5E157C #861EB0 #AA30DC

Accessibility & contrast

On white

11.20
#5E157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5E157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E157C
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E157C#FFFFFF#000000##FFFFFF
##5E157C1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#053D7A
Tritanopia (blue-blind)
#5B2F49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e157c;
/* rgb */ color: rgb(94, 21, 124);
/* oklch */ color: oklch(37.4% 0.164 313.3);
Tailwind
colors: {
  custom: {
    50: '#905da3',
    500: '#5e157c',
    950: '#000000',
  },
}
SCSS
$custom: #5e157c;
$custom-light: #905da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e157c",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 282.524,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37381,
    "c": 0.1641,
    "h": 313.3
  },
  "luminance": 0.04371
}

Semantic roles & 50–950 ramp

primary
#5E157C
secondary
#5EB13C
accent
#EE3A6E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E157C

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

Preview Lab → · Contrast checker → · Palette generator →

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