#5C1152#5C1152

#5C1152 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.131 H 334.2°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#5C1152
RGBrgb(92, 17, 82)
HSLhsl(308, 69%, 21%)
HSVhsv(308, 82%, 36%)
CMYKcmyk(0%, 81.5%, 10.9%, 63.9%)
CIE-LABlab(21.15, 40.44, -20.71)
CIE-LCHlch(21.15, 45.44, 332.88°)
OKLaboklab(33.76% 0.1176 -0.0567)
OKLCHoklch(33.76% 0.131 334.2)
XYZxyz(6.1371, 3.2859, 8.2920)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1152 #115C1B
analogous
#41115C #5C1152 #5C112D
triadic
#5C1152 #525C11 #11525C
tetradic
#5C1152 #5C4111 #115C1B #112D5C
square
#5C1152 #5C4111 #115C1B #112D5C
split-complementary
#5C1152 #2D5C11 #115C41
monochromatic
#1A0517 #280724 #5C1152 #901B80 #C324AE

Accessibility & contrast

On white

12.67
#5C1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5C1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1152
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1152#FFFFFF#000000##FFFFFF
##5C11521.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2C54
Deuteranopia (green-blind)
#2C3750
Tritanopia (blue-blind)
#611830
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5c1152;
/* rgb */ color: rgb(92, 17, 82);
/* oklch */ color: oklch(33.8% 0.131 334.2);
Tailwind
colors: {
  custom: {
    50: '#8d5983',
    500: '#5c1152',
    950: '#000000',
  },
}
SCSS
$custom: #5c1152;
$custom-light: #8d5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1152",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 308,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33762,
    "c": 0.13054,
    "h": 334.2
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#5C1152
secondary
#349541
accent
#EC543C
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040A
muted
#7D797C

Preview Lab

Preview with #5C1152

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

Preview Lab → · Contrast checker → · Palette generator →

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