#5C156F#5C156F

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

Color values

HEX#5C156F
RGBrgb(92, 21, 111)
HSLhsl(287, 68%, 26%)
HSVhsv(287, 81%, 44%)
CMYKcmyk(17.1%, 81.1%, 0%, 56.5%)
CIE-LABlab(23.54, 44.52, -36.04)
CIE-LCHlch(23.54, 57.28, 321.01°)
OKLaboklab(36.07% 0.1123 -0.1014)
OKLCHoklch(36.07% 0.151 317.9)
XYZxyz(7.5506, 3.9597, 15.4024)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C156F #286F15
analogous
#2F156F #5C156F #6F1555
triadic
#5C156F #6F5C15 #156F5C
tetradic
#5C156F #6F2F15 #286F15 #15556F
square
#5C156F #6F2F15 #286F15 #15556F
split-complementary
#5C156F #556F15 #156F2F
monochromatic
#15051A #310B3C #5C156F #871FA2 #B128D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C156F#FFFFFF#000000##FFFFFF
##5C156F1.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)
#003471
Deuteranopia (green-blind)
#193A6D
Tritanopia (blue-blind)
#5B2942
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c156f;
/* rgb */ color: rgb(92, 21, 111);
/* oklch */ color: oklch(36.1% 0.151 317.9);
Tailwind
colors: {
  custom: {
    50: '#8e5c99',
    500: '#5c156f',
    950: '#000000',
  },
}
SCSS
$custom: #5c156f;
$custom-light: #8e5c99;
$custom-dark: #000000;
JSON
{
  "hex": "#5c156f",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 287.333,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36069,
    "c": 0.1513,
    "h": 317.9
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#5C156F
secondary
#51A53A
accent
#EB3D62
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C156F

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

Preview Lab → · Contrast checker → · Palette generator →

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