#5E155C#5E155C

#5E155C is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.135 H 329.2°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#5E155C
RGBrgb(94, 21, 92)
HSLhsl(302, 63%, 23%)
HSVhsv(302, 78%, 37%)
CMYKcmyk(0%, 77.7%, 2.1%, 63.1%)
CIE-LABlab(22.62, 41.28, -25.07)
CIE-LCHlch(22.62, 48.30, 328.73°)
OKLaboklab(35.07% 0.1162 -0.0693)
OKLCHoklch(35.07% 0.135 329.2)
XYZxyz(6.8160, 3.6892, 10.4762)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E155C #155E17
analogous
#3C155E #5E155C #5E1537
triadic
#5E155C #5C5E15 #155C5E
tetradic
#5E155C #5E3C15 #155E17 #15375E
square
#5E155C #5E3C15 #155E17 #15375E
split-complementary
#5E155C #375E15 #155E3C
monochromatic
#190618 #2C0A2B #5E155C #90208D #C22BBE

Accessibility & contrast

On white

12.08
#5E155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5E155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E155C
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E155C#FFFFFF#000000##FFFFFF
##5E155C1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A305E
Deuteranopia (green-blind)
#2A395A
Tritanopia (blue-blind)
#611F37
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5e155c;
/* rgb */ color: rgb(94, 21, 92);
/* oklch */ color: oklch(35.1% 0.135 329.2);
Tailwind
colors: {
  custom: {
    50: '#8e5b8a',
    500: '#5e155c',
    950: '#000000',
  },
}
SCSS
$custom: #5e155c;
$custom-light: #8e5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e155c",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 301.644,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.35074,
    "c": 0.13529,
    "h": 329.2
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#5E155C
secondary
#39953C
accent
#E74641
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5E155C

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

Preview Lab → · Contrast checker → · Palette generator →

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