#5C155E#5C155E

#5C155E is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.136 H 326.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#5C155E
RGBrgb(92, 21, 94)
HSLhsl(298, 63%, 23%)
HSVhsv(298, 78%, 37%)
CMYKcmyk(2.1%, 77.7%, 0%, 63.1%)
CIE-LABlab(22.37, 41.16, -26.80)
CIE-LCHlch(22.37, 49.12, 326.93°)
OKLaboklab(34.87% 0.1138 -0.0744)
OKLCHoklch(34.87% 0.136 326.8)
XYZxyz(6.7021, 3.6203, 10.9333)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C155E #175E15
analogous
#37155E #5C155E #5E153C
triadic
#5C155E #5E5C15 #155E5C
tetradic
#5C155E #5E3715 #175E15 #153C5E
square
#5C155E #5E3715 #175E15 #153C5E
split-complementary
#5C155E #3C5E15 #155E37
monochromatic
#180619 #2B0A2C #5C155E #8D2090 #BE2BC2

Accessibility & contrast

On white

12.18
#5C155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C155E
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C155E#FFFFFF#000000##FFFFFF
##5C155E1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043060
Deuteranopia (green-blind)
#27395C
Tritanopia (blue-blind)
#5F2138
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c155e;
/* rgb */ color: rgb(92, 21, 94);
/* oklch */ color: oklch(34.9% 0.136 326.8);
Tailwind
colors: {
  custom: {
    50: '#8d5b8c',
    500: '#5c155e',
    950: '#000000',
  },
}
SCSS
$custom: #5c155e;
$custom-light: #8d5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5c155e",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 298.356,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3487,
    "c": 0.13594,
    "h": 326.8
  },
  "luminance": 0.0362
}

Semantic roles & 50–950 ramp

primary
#5C155E
secondary
#3C9539
accent
#E74146
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5C155E

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

Preview Lab → · Contrast checker → · Palette generator →

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