#5C1158#5C1158

#5C1158 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.135 H 330.5°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#5C1158
RGBrgb(92, 17, 88)
HSLhsl(303, 69%, 21%)
HSVhsv(303, 82%, 36%)
CMYKcmyk(0%, 81.5%, 4.3%, 63.9%)
CIE-LABlab(21.51, 41.47, -24.18)
CIE-LCHlch(21.51, 48.01, 329.76°)
OKLaboklab(34.13% 0.1178 -0.0668)
OKLCHoklch(34.13% 0.135 330.5)
XYZxyz(6.3755, 3.3813, 9.5475)
Luminance0.0338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1158 #115C15
analogous
#3B115C #5C1158 #5C1133
triadic
#5C1158 #585C11 #11585C
tetradic
#5C1158 #5C3B11 #115C15 #11335C
square
#5C1158 #5C3B11 #115C15 #11335C
split-complementary
#5C1158 #335C11 #115C3B
monochromatic
#1A0519 #280727 #5C1158 #901B89 #C324BB

Accessibility & contrast

On white

12.53
#5C1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5C1158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1158
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1158#FFFFFF#000000##FFFFFF
##5C11581.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072D5A
Deuteranopia (green-blind)
#293756
Tritanopia (blue-blind)
#601B34
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c1158;
/* rgb */ color: rgb(92, 17, 88);
/* oklch */ color: oklch(34.1% 0.135 330.5);
Tailwind
colors: {
  custom: {
    50: '#8d5987',
    500: '#5c1158',
    950: '#000000',
  },
}
SCSS
$custom: #5c1158;
$custom-light: #8d5987;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1158",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 303.2,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.34132,
    "c": 0.13539,
    "h": 330.5
  },
  "luminance": 0.03381
}

Semantic roles & 50–950 ramp

primary
#5C1158
secondary
#349539
accent
#EC463C
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5C1158

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

Preview Lab → · Contrast checker → · Palette generator →

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