#5C1956#5C1956

#5C1956 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.124 H 331.7°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#5C1956
RGBrgb(92, 25, 86)
HSLhsl(305, 57%, 23%)
HSVhsv(305, 73%, 36%)
CMYKcmyk(0%, 72.8%, 6.5%, 63.9%)
CIE-LABlab(22.45, 38.10, -21.35)
CIE-LCHlch(22.45, 43.67, 330.73°)
OKLaboklab(34.77% 0.109 -0.0587)
OKLCHoklch(34.77% 0.124 331.7)
XYZxyz(6.4410, 3.6430, 9.1662)
Luminance0.0364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1956 #195C1F
analogous
#40195C #5C1956 #5C1934
triadic
#5C1956 #565C19 #19565C
tetradic
#5C1956 #5C4019 #195C1F #19345C
square
#5C1956 #5C4019 #195C1F #19345C
split-complementary
#5C1956 #345C19 #195C40
monochromatic
#180716 #2C0C29 #5C1956 #8C2683 #BC33B0

Accessibility & contrast

On white

12.15
#5C1956 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5C1956 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1956
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1956#FFFFFF#000000##FFFFFF
##5C19561.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153058
Deuteranopia (green-blind)
#2D3954
Tritanopia (blue-blind)
#602035
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c1956;
/* rgb */ color: rgb(92, 25, 86);
/* oklch */ color: oklch(34.8% 0.124 331.7);
Tailwind
colors: {
  custom: {
    50: '#8d5c86',
    500: '#5c1956',
    950: '#000000',
  },
}
SCSS
$custom: #5c1956;
$custom-light: #8d5c86;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1956",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 86
  },
  "hsl": {
    "h": 305.373,
    "s": 57.265,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34772,
    "c": 0.12376,
    "h": 331.7
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#5C1956
secondary
#3F9246
accent
#E15547
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5C1956

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

Preview Lab → · Contrast checker → · Palette generator →

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