#5C156E#5C156E

#5C156E is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.0% C 0.150 H 318.4°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#5C156E
RGBrgb(92, 21, 110)
HSLhsl(288, 68%, 26%)
HSVhsv(288, 81%, 43%)
CMYKcmyk(16.4%, 80.9%, 0%, 56.9%)
CIE-LABlab(23.46, 44.31, -35.51)
CIE-LCHlch(23.46, 56.79, 321.29°)
OKLaboklab(35.99% 0.1124 -0.0999)
OKLCHoklch(35.99% 0.15 318.4)
XYZxyz(7.4959, 3.9378, 15.1141)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C156E #276E15
analogous
#2F156E #5C156E #6E1553
triadic
#5C156E #6E5C15 #156E5C
tetradic
#5C156E #6E2F15 #276E15 #15536E
square
#5C156E #6E2F15 #276E15 #15536E
split-complementary
#5C156E #536E15 #156E2F
monochromatic
#15051A #310B3B #5C156E #871FA1 #B229D5

Accessibility & contrast

On white

11.75
#5C156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C156E
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C156E#FFFFFF#000000##FFFFFF
##5C156E1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#1A3A6C
Tritanopia (blue-blind)
#5C2841
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c156e;
/* rgb */ color: rgb(92, 21, 110);
/* oklch */ color: oklch(36.0% 0.150 318.4);
Tailwind
colors: {
  custom: {
    50: '#8e5c98',
    500: '#5c156e',
    950: '#000000',
  },
}
SCSS
$custom: #5c156e;
$custom-light: #8e5c98;
$custom-dark: #000000;
JSON
{
  "hex": "#5c156e",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 287.865,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35994,
    "c": 0.15038,
    "h": 318.4
  },
  "luminance": 0.03937
}

Semantic roles & 50–950 ramp

primary
#5C156E
secondary
#50A43A
accent
#EB3D60
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C156E

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

Preview Lab → · Contrast checker → · Palette generator →

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