#5C1157#5C1157

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

Color values

HEX#5C1157
RGBrgb(92, 17, 87)
HSLhsl(304, 69%, 21%)
HSVhsv(304, 82%, 36%)
CMYKcmyk(0%, 81.5%, 5.4%, 63.9%)
CIE-LABlab(21.45, 41.30, -23.61)
CIE-LCHlch(21.45, 47.57, 330.25°)
OKLaboklab(34.07% 0.1178 -0.0651)
OKLCHoklch(34.07% 0.135 331.1)
XYZxyz(6.3344, 3.3648, 9.3308)
Luminance0.0336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1157 #115C16
analogous
#3C115C #5C1157 #5C1132
triadic
#5C1157 #575C11 #11575C
tetradic
#5C1157 #5C3C11 #115C16 #11325C
square
#5C1157 #5C3C11 #115C16 #11325C
split-complementary
#5C1157 #325C11 #115C3C
monochromatic
#1A0518 #280726 #5C1157 #901B88 #C324B9

Accessibility & contrast

On white

12.55
#5C1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5C1157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1157
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1157#FFFFFF#000000##FFFFFF
##5C11571.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092D59
Deuteranopia (green-blind)
#293755
Tritanopia (blue-blind)
#601B33
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5c1157;
/* rgb */ color: rgb(92, 17, 87);
/* oklch */ color: oklch(34.1% 0.135 331.1);
Tailwind
colors: {
  custom: {
    50: '#8d5987',
    500: '#5c1157',
    950: '#000000',
  },
}
SCSS
$custom: #5c1157;
$custom-light: #8d5987;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1157",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 304,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.34068,
    "c": 0.13457,
    "h": 331.1
  },
  "luminance": 0.03364
}

Semantic roles & 50–950 ramp

primary
#5C1157
secondary
#34953A
accent
#EC483C
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5C1157

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

Preview Lab → · Contrast checker → · Palette generator →

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