#5C156A#5C156A

#5C156A is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.7% C 0.147 H 320.4°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#5C156A
RGBrgb(92, 21, 106)
HSLhsl(290, 67%, 25%)
HSVhsv(290, 80%, 42%)
CMYKcmyk(13.2%, 80.2%, 0%, 58.4%)
CIE-LABlab(23.18, 43.50, -33.38)
CIE-LCHlch(23.18, 54.83, 322.50°)
OKLaboklab(35.7% 0.113 -0.0936)
OKLCHoklch(35.7% 0.147 320.4)
XYZxyz(7.2830, 3.8526, 13.9929)
Luminance0.0385 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C156A #236A15
analogous
#32156A #5C156A #6A154D
triadic
#5C156A #6A5C15 #156A5C
tetradic
#5C156A #6A3215 #236A15 #154D6A
square
#5C156A #6A3215 #236A15 #154D6A
split-complementary
#5C156A #4D6A15 #156A32
monochromatic
#16051A #300B37 #5C156A #881F9D #B529D0

Accessibility & contrast

On white

11.86
#5C156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C156A
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C156A#FFFFFF#000000##FFFFFF
##5C156A1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#1E3A68
Tritanopia (blue-blind)
#5C273F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5c156a;
/* rgb */ color: rgb(92, 21, 106);
/* oklch */ color: oklch(35.7% 0.147 320.4);
Tailwind
colors: {
  custom: {
    50: '#8d5c95',
    500: '#5c156a',
    950: '#000000',
  },
}
SCSS
$custom: #5c156a;
$custom-light: #8d5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5c156a",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 290.118,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.357,
    "c": 0.14671,
    "h": 320.4
  },
  "luminance": 0.03852
}

Semantic roles & 50–950 ramp

primary
#5C156A
secondary
#4BA13A
accent
#EA3E5A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C156A

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

Preview Lab → · Contrast checker → · Palette generator →

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