#5C156B#5C156B

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

Color values

HEX#5C156B
RGBrgb(92, 21, 107)
HSLhsl(290, 67%, 25%)
HSVhsv(290, 80%, 42%)
CMYKcmyk(14%, 80.4%, 0%, 58%)
CIE-LABlab(23.25, 43.70, -33.92)
CIE-LCHlch(23.25, 55.32, 322.19°)
OKLaboklab(35.77% 0.1128 -0.0952)
OKLCHoklch(35.77% 0.148 319.9)
XYZxyz(7.3353, 3.8736, 14.2684)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C156B #246B15
analogous
#31156B #5C156B #6B154F
triadic
#5C156B #6B5C15 #156B5C
tetradic
#5C156B #6B3115 #246B15 #154F6B
square
#5C156B #6B3115 #246B15 #154F6B
split-complementary
#5C156B #4F6B15 #156B31
monochromatic
#16051A #300B38 #5C156B #881F9E #B429D1

Accessibility & contrast

On white

11.83
#5C156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5C156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C156B
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C156B#FFFFFF#000000##FFFFFF
##5C156B1.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#1D3A69
Tritanopia (blue-blind)
#5C273F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5c156b;
/* rgb */ color: rgb(92, 21, 107);
/* oklch */ color: oklch(35.8% 0.148 319.9);
Tailwind
colors: {
  custom: {
    50: '#8d5c96',
    500: '#5c156b',
    950: '#000000',
  },
}
SCSS
$custom: #5c156b;
$custom-light: #8d5c96;
$custom-dark: #000000;
JSON
{
  "hex": "#5c156b",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 289.535,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35772,
    "c": 0.14762,
    "h": 319.9
  },
  "luminance": 0.03873
}

Semantic roles & 50–950 ramp

primary
#5C156B
secondary
#4CA23A
accent
#EA3E5C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C156B

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

Preview Lab → · Contrast checker → · Palette generator →

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