#5E156F#5E156F

#5E156F is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.152 H 319.1°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#5E156F
RGBrgb(94, 21, 111)
HSLhsl(289, 68%, 26%)
HSVhsv(289, 81%, 44%)
CMYKcmyk(15.3%, 81.1%, 0%, 56.5%)
CIE-LABlab(23.88, 44.94, -35.47)
CIE-LCHlch(23.88, 57.25, 321.72°)
OKLaboklab(36.38% 0.1149 -0.0997)
OKLCHoklch(36.38% 0.152 319.1)
XYZxyz(7.7531, 4.0641, 15.4119)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E156F #266F15
analogous
#31156F #5E156F #6F1553
triadic
#5E156F #6F5E15 #156F5E
tetradic
#5E156F #6F3115 #266F15 #15536F
square
#5E156F #6F3115 #266F15 #15536F
split-complementary
#5E156F #536F15 #156F31
monochromatic
#16051A #320B3C #5E156F #8A1FA2 #B528D6

Accessibility & contrast

On white

11.58
#5E156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5E156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E156F
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E156F#FFFFFF#000000##FFFFFF
##5E156F1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#1C3B6D
Tritanopia (blue-blind)
#5E2842
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e156f;
/* rgb */ color: rgb(94, 21, 111);
/* oklch */ color: oklch(36.4% 0.152 319.1);
Tailwind
colors: {
  custom: {
    50: '#8f5c99',
    500: '#5e156f',
    950: '#000000',
  },
}
SCSS
$custom: #5e156f;
$custom-light: #8f5c99;
$custom-dark: #000000;
JSON
{
  "hex": "#5e156f",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 288.667,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3638,
    "c": 0.15212,
    "h": 319.1
  },
  "luminance": 0.04064
}

Semantic roles & 50–950 ramp

primary
#5E156F
secondary
#4FA53A
accent
#EB3D5E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E156F

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

Preview Lab → · Contrast checker → · Palette generator →

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