#5E156B#5E156B

#5E156B is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.148 H 321.0°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#5E156B
RGBrgb(94, 21, 107)
HSLhsl(291, 67%, 25%)
HSVhsv(291, 80%, 42%)
CMYKcmyk(12.1%, 80.4%, 0%, 58%)
CIE-LABlab(23.60, 44.14, -33.34)
CIE-LCHlch(23.60, 55.31, 322.94°)
OKLaboklab(36.09% 0.1154 -0.0934)
OKLCHoklch(36.09% 0.148 321)
XYZxyz(7.5378, 3.9780, 14.2779)
Luminance0.0398 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E156B #226B15
analogous
#33156B #5E156B #6B154D
triadic
#5E156B #6B5E15 #156B5E
tetradic
#5E156B #6B3315 #226B15 #154D6B
square
#5E156B #6B3315 #226B15 #154D6B
split-complementary
#5E156B #4D6B15 #156B33
monochromatic
#16051A #310B38 #5E156B #8B1F9E #B829D1

Accessibility & contrast

On white

11.70
#5E156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E156B
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E156B#FFFFFF#000000##FFFFFF
##5E156B1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#1F3B69
Tritanopia (blue-blind)
#5F273F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5e156b;
/* rgb */ color: rgb(94, 21, 107);
/* oklch */ color: oklch(36.1% 0.148 321.0);
Tailwind
colors: {
  custom: {
    50: '#8f5c96',
    500: '#5e156b',
    950: '#000000',
  },
}
SCSS
$custom: #5e156b;
$custom-light: #8f5c96;
$custom-dark: #000000;
JSON
{
  "hex": "#5e156b",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 290.93,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.36089,
    "c": 0.14849,
    "h": 321
  },
  "luminance": 0.03978
}

Semantic roles & 50–950 ramp

primary
#5E156B
secondary
#4AA23A
accent
#EA3E58
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E156B

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

Preview Lab → · Contrast checker → · Palette generator →

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