#5C155D#5C155D

#5C155D is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.135 H 327.4°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#5C155D
RGBrgb(92, 21, 93)
HSLhsl(299, 63%, 22%)
HSVhsv(299, 77%, 36%)
CMYKcmyk(1.1%, 77.4%, 0%, 63.5%)
CIE-LABlab(22.31, 40.97, -26.24)
CIE-LCHlch(22.31, 48.65, 327.37°)
OKLaboklab(34.8% 0.1138 -0.0727)
OKLCHoklch(34.8% 0.135 327.4)
XYZxyz(6.6575, 3.6024, 10.6985)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C155D #165D15
analogous
#38155D #5C155D #5D153A
triadic
#5C155D #5D5C15 #155D5C
tetradic
#5C155D #5D3815 #165D15 #153A5D
square
#5C155D #5D3815 #165D15 #153A5D
split-complementary
#5C155D #3A5D15 #155D38
monochromatic
#190619 #2B0A2B #5C155D #8D208F #BF2CC1

Accessibility & contrast

On white

12.21
#5C155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5C155D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C155D
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C155D#FFFFFF#000000##FFFFFF
##5C155D1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06305F
Deuteranopia (green-blind)
#28385B
Tritanopia (blue-blind)
#5F2038
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c155d;
/* rgb */ color: rgb(92, 21, 93);
/* oklch */ color: oklch(34.8% 0.135 327.4);
Tailwind
colors: {
  custom: {
    50: '#8d5b8b',
    500: '#5c155d',
    950: '#000000',
  },
}
SCSS
$custom: #5c155d;
$custom-light: #8d5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5c155d",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 299.167,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34804,
    "c": 0.13506,
    "h": 327.4
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#5C155D
secondary
#3B9439
accent
#E64244
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5C155D

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

Preview Lab → · Contrast checker → · Palette generator →

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