#5E155B#5E155B

#5E155B is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.134 H 329.8°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#5E155B
RGBrgb(94, 21, 91)
HSLhsl(302, 63%, 23%)
HSVhsv(302, 78%, 37%)
CMYKcmyk(0%, 77.7%, 3.2%, 63.1%)
CIE-LABlab(22.56, 41.10, -24.50)
CIE-LCHlch(22.56, 47.85, 329.20°)
OKLaboklab(35.01% 0.1162 -0.0677)
OKLCHoklch(35.01% 0.134 329.8)
XYZxyz(6.7725, 3.6719, 10.2475)
Luminance0.0367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E155B #155E18
analogous
#3D155E #5E155B #5E1536
triadic
#5E155B #5B5E15 #155B5E
tetradic
#5E155B #5E3D15 #155E18 #15365E
square
#5E155B #5E3D15 #155E18 #15365E
split-complementary
#5E155B #365E15 #155E3D
monochromatic
#190618 #2C0A2B #5E155B #90208B #C22BBC

Accessibility & contrast

On white

12.11
#5E155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5E155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E155B
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E155B#FFFFFF#000000##FFFFFF
##5E155B1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B305D
Deuteranopia (green-blind)
#2B3959
Tritanopia (blue-blind)
#621F36
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5e155b;
/* rgb */ color: rgb(94, 21, 91);
/* oklch */ color: oklch(35.0% 0.134 329.8);
Tailwind
colors: {
  custom: {
    50: '#8e5b8a',
    500: '#5e155b',
    950: '#000000',
  },
}
SCSS
$custom: #5e155b;
$custom-light: #8e5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e155b",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 302.466,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.35011,
    "c": 0.13444,
    "h": 329.8
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#5E155B
secondary
#39953D
accent
#E74841
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E155B

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

Preview Lab → · Contrast checker → · Palette generator →

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