#5C1156#5C1156

#5C1156 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.134 H 331.7°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#5C1156
RGBrgb(92, 17, 86)
HSLhsl(305, 69%, 21%)
HSVhsv(305, 82%, 36%)
CMYKcmyk(0%, 81.5%, 6.5%, 63.9%)
CIE-LABlab(21.39, 41.12, -23.03)
CIE-LCHlch(21.39, 47.14, 330.75°)
OKLaboklab(34.01% 0.1178 -0.0634)
OKLCHoklch(34.01% 0.134 331.7)
XYZxyz(6.2938, 3.3486, 9.1172)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1156 #115C17
analogous
#3D115C #5C1156 #5C1131
triadic
#5C1156 #565C11 #11565C
tetradic
#5C1156 #5C3D11 #115C17 #11315C
square
#5C1156 #5C3D11 #115C17 #11315C
split-complementary
#5C1156 #315C11 #115C3D
monochromatic
#1A0518 #280726 #5C1156 #901B86 #C324B7

Accessibility & contrast

On white

12.58
#5C1156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1156
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1156#FFFFFF#000000##FFFFFF
##5C11561.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2D58
Deuteranopia (green-blind)
#2A3754
Tritanopia (blue-blind)
#601A33
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5c1156;
/* rgb */ color: rgb(92, 17, 86);
/* oklch */ color: oklch(34.0% 0.134 331.7);
Tailwind
colors: {
  custom: {
    50: '#8d5986',
    500: '#5c1156',
    950: '#000000',
  },
}
SCSS
$custom: #5c1156;
$custom-light: #8d5986;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1156",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 304.8,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.34006,
    "c": 0.13375,
    "h": 331.7
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#5C1156
secondary
#34953C
accent
#EC4A3C
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5C1156

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

Preview Lab → · Contrast checker → · Palette generator →

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