#5E156A#5E156A

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

Color values

HEX#5E156A
RGBrgb(94, 21, 106)
HSLhsl(292, 67%, 25%)
HSVhsv(292, 80%, 42%)
CMYKcmyk(11.3%, 80.2%, 0%, 58.4%)
CIE-LABlab(23.53, 43.94, -32.80)
CIE-LCHlch(23.53, 54.83, 323.26°)
OKLaboklab(36.02% 0.1155 -0.0918)
OKLCHoklch(36.02% 0.148 321.5)
XYZxyz(7.4855, 3.9570, 14.0024)
Luminance0.0396 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E156A #216A15
analogous
#33156A #5E156A #6A154C
triadic
#5E156A #6A5E15 #156A5E
tetradic
#5E156A #6A3315 #216A15 #154C6A
square
#5E156A #6A3315 #216A15 #154C6A
split-complementary
#5E156A #4C6A15 #156A33
monochromatic
#17051A #310B37 #5E156A #8B1F9D #B929D0

Accessibility & contrast

On white

11.72
#5E156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5E156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E156A
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E156A#FFFFFF#000000##FFFFFF
##5E156A1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#203B68
Tritanopia (blue-blind)
#5F263F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5e156a;
/* rgb */ color: rgb(94, 21, 106);
/* oklch */ color: oklch(36.0% 0.148 321.5);
Tailwind
colors: {
  custom: {
    50: '#8f5c95',
    500: '#5e156a',
    950: '#000000',
  },
}
SCSS
$custom: #5e156a;
$custom-light: #8f5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5e156a",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 291.529,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.36017,
    "c": 0.14759,
    "h": 321.5
  },
  "luminance": 0.03957
}

Semantic roles & 50–950 ramp

primary
#5E156A
secondary
#49A13A
accent
#EA3E56
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E156A

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

Preview Lab → · Contrast checker → · Palette generator →

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