#5C115E#5C115E

#5C115E is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.140 H 326.9°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#5C115E
RGBrgb(92, 17, 94)
HSLhsl(298, 69%, 22%)
HSVhsv(298, 82%, 37%)
CMYKcmyk(2.1%, 81.9%, 0%, 63.1%)
CIE-LABlab(21.89, 42.55, -27.57)
CIE-LCHlch(21.89, 50.70, 327.06°)
OKLaboklab(34.52% 0.1177 -0.0766)
OKLCHoklch(34.52% 0.14 326.9)
XYZxyz(6.6344, 3.4848, 10.9107)
Luminance0.0348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C115E #135E11
analogous
#36115E #5C115E #5E113A
triadic
#5C115E #5E5C11 #115E5C
tetradic
#5C115E #5E3611 #135E11 #113A5E
square
#5C115E #5E3611 #135E11 #113A5E
split-complementary
#5C115E #3A5E11 #115E36
monochromatic
#19051A #29082A #5C115E #8F1A92 #C124C6

Accessibility & contrast

On white

12.38
#5C115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5C115E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C115E
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C115E#FFFFFF#000000##FFFFFF
##5C115E1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#25385C
Tritanopia (blue-blind)
#5F1F37
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c115e;
/* rgb */ color: rgb(92, 17, 94);
/* oklch */ color: oklch(34.5% 0.140 326.9);
Tailwind
colors: {
  custom: {
    50: '#8d598c',
    500: '#5c115e',
    950: '#000000',
  },
}
SCSS
$custom: #5c115e;
$custom-light: #8d598c;
$custom-dark: #000000;
JSON
{
  "hex": "#5c115e",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 298.442,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34524,
    "c": 0.14041,
    "h": 326.9
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#5C115E
secondary
#379734
accent
#EC3C40
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5C115E

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

Preview Lab → · Contrast checker → · Palette generator →

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