#5C1252#5C1252

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

Color values

HEX#5C1252
RGBrgb(92, 18, 82)
HSLhsl(308, 67%, 22%)
HSVhsv(308, 80%, 36%)
CMYKcmyk(0%, 80.4%, 10.9%, 63.9%)
CIE-LABlab(21.27, 40.10, -20.53)
CIE-LCHlch(21.27, 45.05, 332.89°)
OKLaboklab(33.85% 0.1166 -0.0562)
OKLCHoklch(33.85% 0.129 334.3)
XYZxyz(6.1530, 3.3177, 8.2973)
Luminance0.0332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1252 #125C1C
analogous
#41125C #5C1252 #5C122D
triadic
#5C1252 #525C12 #12525C
tetradic
#5C1252 #5C4112 #125C1C #122D5C
square
#5C1252 #5C4112 #125C1C #122D5C
split-complementary
#5C1252 #2D5C12 #125C41
monochromatic
#1A0517 #290824 #5C1252 #8F1C80 #C226AD

Accessibility & contrast

On white

12.62
#5C1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1252
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1252#FFFFFF#000000##FFFFFF
##5C12521.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102C54
Deuteranopia (green-blind)
#2C3750
Tritanopia (blue-blind)
#611931
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5c1252;
/* rgb */ color: rgb(92, 18, 82);
/* oklch */ color: oklch(33.8% 0.129 334.3);
Tailwind
colors: {
  custom: {
    50: '#8d5983',
    500: '#5c1252',
    950: '#000000',
  },
}
SCSS
$custom: #5c1252;
$custom-light: #8d5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1252",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 308.108,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33847,
    "c": 0.12941,
    "h": 334.3
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#5C1252
secondary
#359442
accent
#EA553E
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040A
muted
#7D797C

Preview Lab

Preview with #5C1252

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

Preview Lab → · Contrast checker → · Palette generator →

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