#5C156C#5C156C

#5C156C is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.149 H 319.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#5C156C
RGBrgb(92, 21, 108)
HSLhsl(289, 67%, 25%)
HSVhsv(289, 81%, 42%)
CMYKcmyk(14.8%, 80.6%, 0%, 57.6%)
CIE-LABlab(23.32, 43.90, -34.45)
CIE-LCHlch(23.32, 55.81, 321.88°)
OKLaboklab(35.85% 0.1127 -0.0967)
OKLCHoklch(35.85% 0.149 319.4)
XYZxyz(7.3882, 3.8947, 14.5470)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C156C #256C15
analogous
#31156C #5C156C #6C1550
triadic
#5C156C #6C5C15 #156C5C
tetradic
#5C156C #6C3115 #256C15 #15506C
square
#5C156C #6C3115 #256C15 #15506C
split-complementary
#5C156C #506C15 #156C31
monochromatic
#16051A #300B39 #5C156C #881F9F #B329D2

Accessibility & contrast

On white

11.81
#5C156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5C156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C156C
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C156C#FFFFFF#000000##FFFFFF
##5C156C1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c156c;
/* rgb */ color: rgb(92, 21, 108);
/* oklch */ color: oklch(35.8% 0.149 319.4);
Tailwind
colors: {
  custom: {
    50: '#8d5c97',
    500: '#5c156c',
    950: '#000000',
  },
}
SCSS
$custom: #5c156c;
$custom-light: #8d5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5c156c",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 288.966,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35846,
    "c": 0.14854,
    "h": 319.4
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#5C156C
secondary
#4DA33A
accent
#EA3D5D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C156C

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

Preview Lab → · Contrast checker → · Palette generator →

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