#5C155B#5C155B

#5C155B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.133 H 328.6°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#5C155B
RGBrgb(92, 21, 91)
HSLhsl(301, 63%, 22%)
HSVhsv(301, 77%, 36%)
CMYKcmyk(0%, 77.2%, 1.1%, 63.9%)
CIE-LABlab(22.19, 40.60, -25.11)
CIE-LCHlch(22.19, 47.74, 328.27°)
OKLaboklab(34.67% 0.1138 -0.0695)
OKLCHoklch(34.67% 0.133 328.6)
XYZxyz(6.5701, 3.5675, 10.2380)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C155B #155C16
analogous
#3A155C #5C155B #5C1538
triadic
#5C155B #5B5C15 #155B5C
tetradic
#5C155B #5C3A15 #155C16 #15385C
square
#5C155B #5C3A15 #155C16 #15385C
split-complementary
#5C155B #385C15 #155C3A
monochromatic
#190619 #2A0A2A #5C155B #8E208C #C02CBE

Accessibility & contrast

On white

12.26
#5C155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5C155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C155B
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C155B#FFFFFF#000000##FFFFFF
##5C155B1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092F5D
Deuteranopia (green-blind)
#293859
Tritanopia (blue-blind)
#5F1F36
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c155b;
/* rgb */ color: rgb(92, 21, 91);
/* oklch */ color: oklch(34.7% 0.133 328.6);
Tailwind
colors: {
  custom: {
    50: '#8d5b8a',
    500: '#5c155b',
    950: '#000000',
  },
}
SCSS
$custom: #5c155b;
$custom-light: #8d5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c155b",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 300.845,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34675,
    "c": 0.13333,
    "h": 328.6
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#5C155B
secondary
#39933B
accent
#E64442
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5C155B

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

Preview Lab → · Contrast checker → · Palette generator →

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