#5E156C#5E156C

#5E156C is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.149 H 320.5°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#5E156C
RGBrgb(94, 21, 108)
HSLhsl(290, 67%, 25%)
HSVhsv(290, 81%, 42%)
CMYKcmyk(13%, 80.6%, 0%, 57.6%)
CIE-LABlab(23.67, 44.34, -33.87)
CIE-LCHlch(23.67, 55.79, 322.62°)
OKLaboklab(36.16% 0.1153 -0.095)
OKLCHoklch(36.16% 0.149 320.5)
XYZxyz(7.5907, 3.9991, 14.5565)
Luminance0.0400 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E156C #236C15
analogous
#32156C #5E156C #6C154E
triadic
#5E156C #6C5E15 #156C5E
tetradic
#5E156C #6C3215 #236C15 #154E6C
square
#5E156C #6C3215 #236C15 #154E6C
split-complementary
#5E156C #4E6C15 #156C32
monochromatic
#16051A #310B39 #5E156C #8B1F9F #B729D2

Accessibility & contrast

On white

11.67
#5E156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5E156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E156C
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E156C#FFFFFF#000000##FFFFFF
##5E156C1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#1F3B6A
Tritanopia (blue-blind)
#5E2740
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5e156c;
/* rgb */ color: rgb(94, 21, 108);
/* oklch */ color: oklch(36.2% 0.149 320.5);
Tailwind
colors: {
  custom: {
    50: '#8f5c97',
    500: '#5e156c',
    950: '#000000',
  },
}
SCSS
$custom: #5e156c;
$custom-light: #8f5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5e156c",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 290.345,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36161,
    "c": 0.1494,
    "h": 320.5
  },
  "luminance": 0.03999
}

Semantic roles & 50–950 ramp

primary
#5E156C
secondary
#4BA33A
accent
#EA3D59
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E156C

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

Preview Lab → · Contrast checker → · Palette generator →

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